3-6 PrintBitmap
This function prints image files. (Bmp, jpg, Gif) but standard ce o/s Only support bitmap
format.
long PrintBitmap (
LPCTSTR FileName,
long Width,
long Alignment,
long Level
);
[Parameters]
* FileName
[in] Expressed as a row of Unicode characters, the full path of the image file is set.
* Width
[in] This value is the width of the image file to be converted. The value range is 0~384.
When setting the value as below, the image size is modified to fit conditions.
Set to a value of 384, image is fit to full size of paper
No variation given to image size
* Alignment
[in] This value sets the barcode alignment.
* Level
[in] This value sets the color level of the image. The value range is 0 ~ 100.
[Return Values]
Returns after function success
Unable to open communication port
Failure to read image file
long lResult;
lResult = PrinterOpen(“portinfo…”, 1000);
……
PrintBitmap(strDirBmp, 300, BXL_ALIGNMENT_CENTER, 50);
……