TBarCode Library 11  TBarCode Library 11
ERRCODE _stdcall BCPostscriptToMemoryExt ( t_BarCode pBarCode,
VOID *  pHandle,
INT *  pnSize,
LPCRECT  pRect,
BOOL  bIncludeMacros 
)

Writes barcode (Postscript) into memory-block (extended version).

Saves barcode in a memory block. The barcode is represented in vectorized PostScript (no bitmaps!). This function works like BCPostscriptToMemory() but allows additional specification of the required output resolution. Beside this it can be selected, if barcode-specific macros are to be included into the generated Postscript code.
The origin of the coordinate space in Postscript is the lower, left corner of a page. The positive y-axis points upwards.

See also:
BCPostscriptToMemory()
Parameters:
[in]pBarCodePointer to barcode structure.
[in]pHandlePointer to memory block.
[in,out]pnSizeSize of memory block as allocated. Contains required size after function call (including a terminating 0-byte).
[in]pRectBounding rectangle [1/1000 mm]. left / bottom must be zero, top / right specifies barcode dimensions [1/1000 mm].
[in]bIncludeMacrosExclude or include macro definitions.
  • true: Postscript Macros are included
  • false: Postscript Macros are excluded
Return values:
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.