react-native-star-io10 icon indicating copy to clipboard operation
react-native-star-io10 copied to clipboard

[TSP100IIIBI] How much is the image width set

Open JoyJoyMe opened this issue 2 years ago • 4 comments

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

How do I know the width of the printed paper?

JoyJoyMe avatar Nov 15 '21 08:11 JoyJoyMe

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

gare-bear avatar Nov 18 '21 20:11 gare-bear

@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!

kickbk avatar Feb 28 '22 17:02 kickbk

@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.

gare-bear avatar May 26 '22 18:05 gare-bear