EM220II
Rev. 1.00
- 30 -
Mobile Printer
iOS SDK API Reference Guide
alignment
Barcode alignment setting
Refer to 2-3 Barcode/Text Alignment
textPosition
Barcode text position setting
Refer to 2-6 Barcode Text Position
[Return Value]
Refer to 2-16 Result Code
[Availability]
SDK 1.0.0 and later
5-3-17 printBitmap
Print image file
[Function prototype]
- (long)printBitmap:(NSString *)path
width:(long)width
alignment:(long)alignment
level:(long)level
[Parameters]
path
Path of image file
width
Width of image file to convert, valid setting range is 0 ~ max width
Image is resized with the given condition when the value is less than 0
Refer to 2-8 Image Width
alignment
Image alignment setting
Refer to 2-3 Image Alignment
level
Color level and diffusion processing option of image
Value
Description
0 ~ 100
Color level value
If fourth digit is 1
Enable diffusion processing
If fifth digit is 1
Image print using ESC * command
<Note> What is Error Diffusion?
It is a method to present the color image or black and white image with less number of
bits/pixel, which may produce few visible patterns such as a snake-like pattern for a certain
type of image but in general the capability of sharp representation is excellent.
Disadvantage is long processing type and this is because errors are measured and
amount of computing required for distribution the errors to neighbor pixels.
It is recommended to use the diffusion algorithm with this SDK.
[Return Value]
Refer to 2-16 Result Code