Barcode object: Image file options

Supported image file formats

The functions SaveAs, SaveAsBySize and SaveAsBySizeExtended of the ActiveBarcode Control support different image formats and color depths:

Windows Bitmap
Windows Bitmap
Extension: BMP
Format #: 0
1-bit s/w: yes
8-bit: yes
16-bit: yes
24-bit: yes
32-bit: default default
Bitmap graphics
JPEG
JPEG
Extension: JPG, JPEG
Format #: 2
1-bit s/w: no
8-bit: gray
16-bit: no
24-bit: default default
32-bit: no
Bitmap graphics
Portable Network Graphic
Portable Network Graphic
Extension: PNG
Format #: 13
1-bit s/w: yes
8-bit: yes
16-bit: no
24-bit: default default
32-bit: yes
Bitmap graphics
TIFF
TIFF
Extension: TIF
Format #: 18
1-bit s/w: yes
8-bit: yes
16-bit: no
24-bit: default default
32-bit: yes
Bitmap graphics
Targa
Targa
Extension: TGA
Format #: 17
1-bit s/w: no
8-bit: yes
16-bit: yes
24-bit: default default
32-bit: yes
Bitmap graphics
GIF
GIF
Extension: GIF
Format #: 25
1-bit s/w: yes
8-bit: default default
16-bit: no
24-bit: no
32-bit: no
Bitmap graphics
Windows Metafile Format
Windows Metafile Format
Extension: WMF
Format #: 101
1-bit s/w: no
8-bit: no
16-bit: no
24-bit: default default
32-bit: no
Vector graphics
Enhanced Metafile Format
Enhanced Metafile Format
Extension: EMF
Format #: 100
1-bit s/w: no
8-bit: no
16-bit: no
24-bit: default default
32-bit: no
Vector graphics
Wireless Bitmap
Wireless Bitmap
Extension: WBM, WBMP
Format #: 19
1-bit s/w: default default
8-bit: no
16-bit: no
24-bit: no
32-bit: no
Bitmap graphics
Portable Bit Map
Portable Bit Map
Extension: PBM
Format #: 7
1-bit s/w: default default
8-bit: no
16-bit: no
24-bit: no
32-bit: no
Bitmap graphics
Portable Gray Map
Portable Gray Map
Extension: PGM
Format #: 11
1-bit s/w: no
8-bit: gray/default
16-bit: no
24-bit: no
32-bit: no
Bitmap graphics
Portable Pixel Map
Portable Pixel Map
Extension: PPM
Format #: 14
1-bit s/w: no
8-bit: no
16-bit: no
24-bit: default default
32-bit: no
Bitmap graphics
X Pix Map
X Pix Map
Extension: XPM
Format #: 23
1-bit s/w: no
8-bit: no
16-bit: no
24-bit: default default
32-bit: no
Bitmap graphics

Color depths marked as default are used when you use the SaveAs, SaveAsBySize function or when you set the color depth to zero when using the function SaveAsBySizeExtended.

Color depths for image files

Supported color depths are:

colordepth Description
1 1-bit monochrome, the image will be b/w.
8 8-bit colours or grayscale depending on the image format
16 16-bit TrueColor
24 24-bit TrueColor
32 32-bit TrueColor

Please note that not every color depth is available for every image file format.

Supported flags for image files

You can use the following flags when saving image files:

Image format Flag Description
BMP 0x1 Saves the bitmap as RLE (Run Length Encoded)
JPEG 0x80
0x100
0x200
0x400
0x800
JPEG Qualität "Super" (100%)
JPEG Qualität "Good" (75%)
JPEG Qualität "Normal" (50%)
JPEG Qualität "Average" (25%)
JPEG Qualität "Poor" (10%)

DPI settings

When saving as JPEG, PNG, TIFF or BMP image format you can set the DPI (Dots per Inch), if you are using the SaveAsBySizeExtended method.