3-6 PrintImage
This function prints image files. Supported formats vary with different platforms.
async Task<Int32> PrintImage (string fileName, Int32 Width, Int32 Alignment, Int32 Level);
[Parameters]
* fileName
[in] This is the string for the entire path of an image file. JPG, BMP and GIF are
supported.
* Width
[in] This value sets the width of the image file to be converted. The value ranges from
0 to 384, 576 and 832 for 2, 3 and 4-inch printer respectively.
The size of the image is adjusted according to the following values:
The image converts to fit a different size of paper
according to the printer size.
The size of the image remains the same.
* Alignment
[in] This value sets the alignment of the barcode.
* Level
[in] This value sets the color level of the image and ranges 0-100.
[Return Values]
Returns when the function succeeds.
Data transmission failed.
Unable to read the image file.
BxlWinPhoneSDK bxlPrinter = new BxlWinPhoneSDK();
……
bxlPrinter.PrintBitmap(strDirBmp, 300, BXL_ALIGNMENT_CENTER, 50);
……