39
CITIZEN UWP POS Print SDK - Programming Manual
Mode can be specified in combination with the halftone and output method. If you want to combine,
please specify the logical sum. If mode is omitted, printed at CMP_BM_MODE_HT_THRESHOLD |
CMP_BM_MODE_CMD_RASTER.
For more information on mode is as follows.
Halftone
Specify the halftone treatment method.
Value
Description
CMP_BM_MODE_HT_THRESHOLD Threshold
Suitable for characters printing.
CMP_BM_MODE_HT_DITHER
Dither
Suitable for graphics printing.
Output
Specify the output method.
Value
Description
CMP_BM_MODE_CMD_RASTER
Raster command output
Suitable for small data printing.
In order to output
the data collectively, there is a height limit (2,304
dots 28cm approximately).
CMP_BM_MODE_CMD_BITIMAGE
Bit image command output
Suitable for large data printing.
In order to output
the split data, there is no height limit.
CMP_BM_MODE_CMD_GRAY16
Grayscale(4bpp) output
Available in CT-D101/151,CT-E601/651,CT-S251/
601II/651II/801II/851II/751.
Graphic can be printed more beautifully.
Return value
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Example
await printer.PrintBitmapAsync ( "samplebitmap.bmp",
ESCPOSConst.CMP_BM_ASIS,
ESCPOSConst.CMP_ALIGNMENT_CENTER
ESCPOSConst.CMP_BM_MODE_HT_DITHER|ESCPOSConst.CMP_BM_MODE_CMD_
RASTER
);