TBarCode Library 11 TBarCode Library 11

◆ BCSaveImageA()

ERRCODE BCSaveImageA ( t_BarCode * pBarCode,
LPCSTR lpszFileName,
e_IMType eImageType,
LONG lXSize,
LONG lYSize,
DOUBLE dXRes,
DOUBLE dYRes )

Saves the barcode to an image-file (Windows only).

Saves the barcode to an image-file (format Bmp, Jpg, Png, Eps, Emf...). The values of lXSize and lYSize should be increased, if the barcode is not readable. The values of dXRes and dYRes can affect printing size when printing from graphic- or painting programs.
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 ".ai", ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcl", ".pcx", ".png", ".svg", ".tif", and ".tmp".

Note
WINDOWS only
This function saves bitmaps in monochromatic formats. For colored images, use BCSaveImageEx() instead.
See also
BCSaveImageEx(), BCSaveImageToBuffer(), BCPostscriptToFile(), BCPCLToMemory(), BCGetEnhMetaFile()
Parameters
[in]pBarCodePointer to barcode structure.
[in]lpszFileNameFilename
[in]eImageTypeEnumeration for the type of the image.
[in]lXSizeX-Size of the image [pixel]. For vector formats the unit is [0.001 mms]
[in]lYSizeY-Size of the image [pixel]. For vector formats the unit is [0.001 mms]
[in]dXResX-Resolution of the image [pixels / inch].
[in]dYResY-Resolution of the image [pixels / inch].
Return values
ERRCODEErrOk (0) in case of success. Non-zero if error occurred.

© 2026 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on for TBarCode Library 11 with doxygen 1.15.0