ERRCODE BCSaveImageToBuffer ( t_BarCode pBarCode,
LPBYTE *  lpBuffer,
e_IMType  eImageType,
LONG  lXSize,
LONG  lYSize,
DOUBLE  dXRes,
DOUBLE  dYRes 
)

Saves barcode as image into a memory buffer (Windows only).

Draws the barcode and saves it using the specified image format to a memory buffer The values of XSize and YSize should be increased, if the barcode is not readable or requires a high printing resolution. The values of XRes and YRes can affect the printing size when printing from graphic- or painting programs (but not when printing from the browser!). The buffer will be allocated on the global heap. Retrieve the buffer size in Bytes with GlobalSize((HGLOBAL)GlobalHandle(szBuffer)). It is recommended to lock the buffer before reading with pMem = GlobalLock (hMem) and unlock it afterwards (GlobalUnlock(hMem)). When no longer needed the buffer must be released by calling GlobalFreePtr(buffer) (WINDOWSX.h macro).

Note:
WINDOWS only. This function can be used with a developer license only.
See also:
BCSaveImageToBufferEx()
Parameters:
[in] pBarCode Pointer to barcode structure.
[out] lpBuffer Buffer.
[in] eImageType Enumeration for the type of the image.
[in] lXSize X-Size of the image [pixel].
[in] lYSize Y-Size of the image [pixel].
[in] dXRes X-Resolution of the image [pixels / inch].
[in] dYRes Y-Resolution of the image [pixels / inch].
Return values:
ERRCODE ErrOk (0) in case of success. Non-zero if error occurred.


© 2008 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Tue May 5 15:50:33 2009 for TEC-IT TBarCode Library 9.2 with doxygen 1.5.3