Combined features from few PRs into one + some other additions and dual-build #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ESC-POS-USB-NET/ESC-POS-USB-NET/Epson Commands/Image.cs
Line 16 in ff50466
Now it can be set like this (before calling
prn.Image
):Also I have changed in project file
TargetFramework
so the build will be not only fornetstandard2.0
but also fornet45
- this should make easier to include only the library dll itself with netFramework application (net 4.5+)Another changes are in Code128 - now it's possible to specify charset A/B/C - like Barcode128 only allows C code charset #38 ,and I took it a step further and added to all barcodes a options that allow to set length(height) and width (module) .
Added also Reverse mode like in PR Implemented reverse mode #47 .
Next change is in Image routine again, I have added option
scaleToWidth
- this behave almost like PR Image print isScale and center #68 , but my twist it that if image is wider than printhead width then image will be down-scaled to printing width. As for center feature, I think adding AlignCenter before image should do the trick (unfortunately my chinese MPT-II don't support centered images).Another changes are in regards to QrCode - many of those changes are from PR add Qrcode size(normally 16 kind of size and default is 3+) #22 , I have added a function that allow to set size, error correction level, and option to disable Set QrCode Model command:
GS(k<func165>
, my printer instead ignoring this command it print a number2
😒 - it took me a while to figure it out (I had for a while: wth this 2 is coming from 😠 )Lastly I have updated README , added CHANGELOG file and file
SPECIFIC-PRINTER-INFO
where we maybe put together some information about different printers and theirs quirks.