Property: ColorDepth
(TSave2D_Gif)
Specifies the color depth of a Graphics Interchange Format (GIF) file for the TSave2D_Gif component.
Syntax:
type
{ Defined in the pSave2D_Gif unit }
TGifColorDepth = (gcdColors_1b, gcdColors_2b, gcdColors_3b, gcdColors_4b, gcdColors_5b, gcdColors_6b, gcdColors_7b, gcdColors_8b);
property ColorDepth: TGifColorDepth;
Description:
Color depth, also known as bit depth, pixel format, is either the number of bits used to indicate the color of a single pixel. In a Graphics Interchange Format (GIF) file, the pixels can be defined by a varying number of bits. The property specifies which color depth will be used to save a barcode symbol to a Graphics Interchange Format (GIF) file. It can be one of these value (defined in the pSave2D_Gif unit):
- gcdColors_1b: Uses the 1-bit per pixel (1bpp) format. It supports 2 distinct colors (for example: black and white). Each pixel is an 1-bit index into a table of up to 2 colors.
- gcdColors_2b: Uses the 2-bit per pixel (2bpp) format. It supports 4 distinct colors. Each pixel value is a 2-bit index into a table of up to 4 colors.
- gcdColors_3b: Uses the 3-bit per pixel (3bpp) format. It supports 8 distinct colors. Each pixel value is a 3-bit index into a table of up to 8 colors.
- gcdColors_4b: Uses the 4-bit per pixel (4bpp) format. It supports 16 distinct colors. Each pixel value is a 4-bit index into a table of up to 16 colors.
- gcdColors_5b: Uses the 5-bit per pixel (5bpp) format. It supports 32 distinct colors. Each pixel value is a 5-bit index into a table of up to 32 colors.
- gcdColors_6b: Uses the 6-bit per pixel (6bpp) format. It supports 64 distinct colors. Each pixel value is a 6-bit index into a table of up to 64 colors.
- gcdColors_7b: Uses the 7-bit per pixel (7bpp) format. It supports 128 distinct colors. Each pixel value is a 7-bit index into a table of up to 128 colors.
- gcdColors_8b: Uses the 8-bit per pixel (8bpp) format. It supports 256 distinct colors. Each pixel value is a 8-bit index into a table of up to 256 colors.
Contents
Copyright © 2001-2024
Han-soft Corporation. All rights reserved.