Standard or higher

Method: SaveAsBySizeExtended

SaveAsBySizeExtended (path: WideString, Width: Integer, Height: Integer, Format: Integer, ColorDepth: Integer, Transparent: Integer, Flags: Integer, Angle: Integer, DPI: Integer): Smallint




Extended version of the SaveAsBySize Method.

Saves the current barcode as image file.

The image size is specified by the parameters width and height.

The image file type is specified by the parameter format.Set it to -1 if you want to use the automatic file type selection by the file names extension.

The color depth is set in bit (1, 8, 16, 24, 32).

The option transparent is not implemented yet. Set it to 0 if not transparency is wanted and to -1 to set the background transparent.

Use the flags for special options.

The option angle is used to rotate the image. Set the rotation in degrees (0-359). To overrule this option with the current setting of the rotate property set angle to -1.

Use the parameters dpi to set a specific resolution in DPI for the image file. This can be used in the image formats BMP, JPEG, TIF and PNG. (0=set no DPI value)

Here you can see a list of the supported image file types, color depths and flags.

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

Return values of this function:
0 : File save ok. No errors.
1 : Error while saving file.
2 : Wrong colordepth for this file format
3 : Colordepth/angle combination not possible
4 : Filetype not supported
5 : Low memory
6 : Low memory
7 : Low memory