|
|
This component implements an interface to the RGB color images that are transformed from color images in the BMP format.
The component provides features which covers loading an external image file and converting it into the internal image array. The user can handle the image by GetImage method which returns pointer to the image structure. This structure consist of information about image width, height, size, name and also the image data itself (for details see User types page). The component creates RGB image of 196 colors with 8-bit value RGB scheme 3-3-2 (7 grades of a red color, 7 grades of a green color, 4 grades of a blue color). Image data representation The component generates image data line by line as array of bytes where each pixel of image is represented by a single byte value. Two bits are used for blue and three bits are used for green and red color.Pixel color is denoted by a byte value, where meaning of the bits (from MSB) is following:
Settings of '001' and '010' bit value used in a selection of a green (red) color grade always select the same grade of the green (red) color. That is why only 7 grades of green (red) color can be used. Note: When other than 256-color BMP images are used then they are internally converted to meet the 8-bit values. |