TBarCode Library 11  TBarCode Library 11
ERRCODE _stdcall 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 higher 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]pBarCodePointer to barcode structure.
[in]hDCDevice context to copy from (default: NULL).
[in]nWidthWidth of barcode to copy, in pixels (of the device context).
[in]nHeightHeight of barcode to copy, in pixels (of the device context).
[in]fTransparentBarcode transparent or not.
  • true: Background is not drawn
  • false: Background is drawn (using background color)
[in]szFileNameFilename the barcode should be written to (NULL for clipboard only).
Return values:
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.