How to save a barcode symbol to picture file
Usage:
  1. Put a TBarcodeFmx2D barcode component, such as the TBarcodeFmx2D_QRCode, TBarcodeFmx2D_PDF417, and TBarcodeFmx2D_RSS14 to your form.

  2. Put a TSaveFmx2D component, such as the TSaveFmx2D_Bmp, TSaveFmx2D_Png, and TSaveFmx2D_Svg to your form.

  3. Set the Barcode2D property of the TSaveFmx2D component to the TBarcodeFmx2D barcode component.

  4. Use the Save method of the TSaveFmx2D component to save the barcode symbol to picture file.

Note:

For the TBarcodeFmx2D_MaxiCode component, please use the SaveToFile method of the TImage control that is linked to the barcode component to save the barcode symbol as a picture file.

For example:

Image1.Bitmap.SaveToFile('D:\2DBarcode.bmp');

Also, You can bind multiple TSaveFmx2D components to a TBarcodeFmx2D barcode component in order to save the barcode symbol in multipe formats.

Contents