star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.
Other
90 stars 55 forks source link

[TSP100IIIBI] How much is the image width set #33

Closed JoyJoyMe closed 3 months ago

JoyJoyMe commented 2 years ago

.actionPrintImage(new StarXpandCommand.Printer.ImageParameter(uri, width))

How do I know the width of the printed paper?

gare-bear commented 2 years ago

@JoyJoyMe the SDK (or its classes) don't expose the paper width in pixels, but the TSP100III has a pixel width of 576 dots.

kickbk commented 2 years ago

@gare-bear to be able to print an image 100%, we need to pass the pixel width of the printer we are printing on, right? and your SDK doesn't allow fetching the pixel width from the printer (odd, but ok...). Perhaps one possible solution will be to fetch the model name (the SDK does expose that), and with a simple chart, get the pixel width of the model? If my logic is correct, could you please provide such a chart with all your models and their pixel widths so we can use it? Thanks!

gare-bear commented 2 years ago

@kickbk we're going to enable the wiki on this repo in the near future, so I will add the chart you requested there. For now, this issue has been answered and resolved. I will update this post once we add the chart to the wiki.

Dwikavindra commented 1 year ago

Hi, is this wiki available yet? I got multiple printers to support one of them being mPop, do you happen to know what the print width is ? @gare-bear

can-miki commented 4 months ago

Please refer to this wiki Please also refer to this.

We would like to improve the documentation based on everyone's opinions. Thank you for your cooperation.