endeesfritpt

Method: SaveAsBySize

SaveAsBySize (path: WideString, Width: Integer, Height: Integer): Smallint

Saves the current barcode as image file (BMP, JPEG, PNG, TIFF, Targa, GIF, WMF, EMF, PBM, PGM, PPM, WBMP, XPM). The image size is specified by the parameters width and height. The image file type used is defined by the extension of the file name (e.g. BMP for a Windows Bitmap).

This method supports the following image formats: Windows Bitmap (BMP), JPEG, PNG, TIFF, Targa, GIF, WMF, EMF, PBM, PGM, PPM, WBMP et XPM.

Related topic: Image file options

Code examples

Delphi:
Barcode1.SaveAsBySize(MyFileName,600,200);