Zebra Technologies EM220II Printer User Manual


 
EM220II
Rev. 1.00
- 36 -
Mobile Printer
iOS SDK API Reference Guide
5-3-31 downloadNVImage (Diffusion)
Download the image data corresponding to the address saved in the NV area.
[Function prototype]
- (long)downloadNVImage:(int)address
withImage:(UIImage *)image
width:(long)width
level:(long)level
[Parameters]
address
Image address in the range of 0 ~ 99. If there is an image saved for the
corresponding address, the existing image is replaced by the new image.
images
Download target image object
width
Width of the image to print
When the setting is BXL_WIDTH_FULL, the image is printed with the
maximum width that can be printed by the printer.
Image is enlarged when the width of the image is smaller than the setting,
and reduced when it is bigger than the setting.
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
[Discussion]
When the width of the image is wider than the width of printer, the image is resized
automatically.
[Availability]
SDK 1.0.0 and later