TBarCode Library 11  TBarCode Library 11
ERRCODE _stdcall BCBitmapToMemoryA ( t_BarCode pBarCode,
VOID *  pHandle,
LPCSTR  pszFormat,
INT *  pnSize,
LPCRECT  pRect 
)

Writes barcode in an image format to memory block.

All barcodes are supported. Text output is not supported.

Parameters:
[in]pBarCodePointer to barcode structure.
[in]pHandlePointer to memory block.
[in]pszFormatThe image format ("BMP" , "GIF", "JPG" , "PNG" or "TIF")
[in,out]pnSizeThe size of the allocated memory block. Contains the required size after the function call.
Note:
The returned size is the really needed size + 1.
Parameters:
[in]pRectBounding rectangle for barcode dimensions [1/1000 mm]. (left, top) is the upper left corner of the barcode; must be (0, 0). (right, bottom) is the lower right corner of the barcode; (width, height).
Return values:
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.
See also:
BCBitmapToFile()