ERRCODE BCCopyToClipboardExA ( t_BarCode pBarCode,
HDC  hDC,
LONG  nWidth,
LONG  nHeight,
BOOL  fTransparent,
LPCSTR  szFileName 
)

Copies barcode to clipboard (extended version, Windows only).

Like BCCopyToClipboard(). In addition, you can specify the device context, the transparency and the background color of the resulting barcode. Optional the barcode can be saved as EMF (Enhanced Meta File) or WMF (Windows meta file). The format is specified through the file extension (.emf or .wmf) of szFileName. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format is not fully supported by these Windows versions. No problems for Windows 2000 or Windows XP are to be expected. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcx", ".png", ".tif", and ".tmp".

Note:
WINDOWS only
Parameters:
[in] pBarCode Pointer to barcode structure.
[in] hDC Device context to copy from (default: NULL).
[in] nWidth Width of barcode to copy, in pixels (of the device context).
[in] nHeight Height of barcode to copy, in pixels (of the device context).
[in] fTransparent Barcode transparent or not.
  • true: Background is not drawn
  • false: Background is drawn (using background color)
[in] szFileName Filename the barcode should be written to (NULL for clipboard only).
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