Property: ColorDepth
(TSaveFmx2D_Bmp)
Specifies the color depth of a Bitmap image (BMP) file for TSaveFmx2D_Bmp component.
Syntax:
type
{ Defined in the pfmxSave2D_Bmp unit }
TBmpColorDepth = (bcdColors_01b, bcdColors_04b, bcdColors_08b, bcdColors_12b, bcdColors_15b, bcdColors_16b, bcdColors_24b, bcdColors_32b);
property Format: TBmpColorDepth;
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 Bitmap image (BMP) file, the pixels can be defined by a varying number of bits. The property specifies which pixel format will be used to save a barcode symbol to a Bitmap image (BMP) file. It can be one of these value (defined in the pfmxSave2D_Bmp unit):
- bcdColors_01b: Uses the 1-bit per pixel (1bpp) format. It supports 2 distinct colors (for example: black and white) and stores 8 pixels per 1 byte. Each pixel is an 1-bit index into a table of up to 2 colors.
- bcdColors_02b: Uses the 2-bit per pixel (2bpp) format. It supports 4 distinct colors and stores 4 pixels per 1 byte. Each pixel value is a 2-bit index into a table of up to 4 colors.
- bcdColors_04b: Uses the 4-bit per pixel (4bpp) format. It supports 16 distinct colors and stores 2 pixels per 1 byte. Each pixel value is a 4-bit index into a table of up to 16 colors.
- bcdColors_08b: Uses the 8-bit per pixel (8bpp) format. It supports 256 distinct colors and stores 1 pixel per 1 byte. Each byte is an index into a table of up to 256 colors.
- bcdColors_12b: Uses the 12-bit per pixel (12bpp) format. It supports 4096 distinct colors and stores 1 pixel per 2 byte. Each pixel value define the red, green and blue samples of the pixel, uses 4 bits for each color primary with 4 bits left over.
- bcdColors_15b: Uses the 15-bit per pixel (15bpp) format. It supports 32768 distinct colors and stores 1 pixel per 2 byte. Each pixel value define the red, green and blue samples of the pixel, uses 5 bits for each color primary with one bit left over.
- bcdColors_16b: Uses the 16-bit per pixel (16bpp) format. It supports 65536 distinct colors and stores 1 pixel per 2 byte. Each pixel value define the red, green and blue samples of the pixel, uses 5 bits for red and blue colors, 6 bits for green color.
- bcdColors_24b: Uses the 24-bit per pixel (24bpp) format. It supports 16777216 distinct colors and stores 1 pixel value per 3 bytes. Each pixel value defines the red, green and blue samples of the pixel.
- bcdColors_32b: Uses the 32-bit per pixel (32bpp) format. It supports 4294967296 distinct colors and stores 1 pixel per 4 byte. Each pixel value define the Alpha, Red, Green and Blue samples of the pixel.
Contents
Copyright © 2001-2024
Han-soft Corporation. All rights reserved.