star-micronics / StarPRNT-SDK-iOS-Swift

StarPRNT SDK for iOS including libraries for supporting application development for Star printers.
https://www.star-m.jp/products/s_print/sdk/starprnt_sdk/manual/ios_swift/en/index.html
Other
41 stars 7 forks source link

Bothscale for StarDotImpact #5

Closed mrtungdev closed 3 years ago

mrtungdev commented 3 years ago

Hello, I'm using Star SP700 (Star Dot Impact) for my kitchen order and TSP800II for Receipt.

Because our order has multiple languages, so, for easy we convert to image and using appendBitmap command for printing. In the TSP800 device, it works perfectly. But in the SP700, the image not scale, it's so big. Image

My pager: 3'', and I set in appendBitmap command with is 576dots.

Please help.

mrtungdev commented 3 years ago

oh, my bad, SP700 is 210dots

gare-bear commented 3 years ago

Hi @ImTung,

Glad you found your answer. For others, you can reference pixel width from our PrinterSettingConstant class

https://github.com/star-micronics/StarPRNT-SDK-Android-Java/blob/23a400e8292721fbff772e8b6fc73dc0db40e08b/SDK/app/src/main/java/com/starmicronics/starprntsdk/PrinterSettingConstant.java#L15-L20

radhika-gokani commented 3 years ago

On what is paper size defined ? Any kind of printer can be connected so how to decide which size to use ?