[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Descriptor object for the image format of devices and raw (uncompressed) image data
Source position: graphtype.pp line 113
type TRawImageDescription = object |
||
|
An initialized image can contain color (RGBA) or monochrome pixels. |
|
|
Width of the image in pixels |
|
|
Height of the image in pixels. |
|
Depth: Byte; |
|
Number of used bits per pixel |
|
[unusable by definition] |
|
|
The LSB/MSB-first byte order of color data. |
|
|
The first stored line of pixels can represent the logical top or bottom of the displayed image. |
|
|
Alignment of the scanlines. |
|
BitsPerPixel: Byte; |
|
Number of bits stored per pixel |
RedPrec: Byte; |
|
Bits per pixel in the Red channel |
RedShift: Byte; |
|
Bit offset of the Red channel in color data. |
GreenPrec: Byte; |
|
Bits per pixel in the Green channel |
GreenShift: Byte; |
|
Bit offset of the Green channel in color data. |
BluePrec: Byte; |
|
Bits per pixel in the Blue channel |
BlueShift: Byte; |
|
Bit offset of the Blue channel in color data. |
AlphaPrec: Byte; |
|
Bits per pixel in the Alpha channel |
AlphaShift: Byte; |
|
Bit offset of the Alpha channel in color data. |
MaskBitsPerPixel: Byte; |
|
Bits per mask pixel, 0 when no mask is present. |
MaskShift: Byte; |
|
The bit offset of the mask bit [if stored in a byte?] |
|
Alignment of Mask lines. |
|
|
Bit order of the Mask. |
|
PaletteColorCount: Word; |
|
Number of entries in the color palette. 0 when no palette is present. |
PaletteBitsPerIndex: Byte; |
|
Bits per palette index, stored in the pixel data[?] |
PaletteShift: Byte; |
|
[useless by definition] |
|
Alignment of [what?] |
|
|
Bit order of the palette indices[?] |
|
|
Byte order of the palette indices[?] |
|
procedure Init; |
|
Initialize the image descriptor to all zeroes. |
procedure Init_BPP24_B8G8R8_BIO_TTB(); |
|
Init for an unmasked 24 bit RGB image (LSB Blue). |
procedure Init_BPP24_B8G8R8_M1_BIO_TTB(); |
|
Init for a masked 24 bit RGB image (LSB Blue) |
procedure Init_BPP32_B8G8R8_BIO_TTB(); |
|
Init for an unmasked 32 bit RGB image (LSB blue) |
procedure Init_BPP32_B8G8R8_M1_BIO_TTB(); |
|
Init for a masked 32 bit RGB image (LSB blue) |
procedure Init_BPP32_B8G8R8A8_BIO_TTB(); |
|
Init for an unmasked 32 bit RGBA image (LSB blue) |
procedure Init_BPP32_B8G8R8A8_M1_BIO_TTB(); |
|
Init for a masked 32 bit RGBA image (LSB blue) |
function GetDescriptionFromMask; |
|
Returns an monochrome image descriptor constructed from the Mask |
function GetDescriptionFromAlpha; |
|
Returns an monochrome image descriptor constructed from the Alpha channel |
procedure GetRGBIndices(); |
||
function BytesPerLine; |
|
The number of bytes per scanline. |
function BitsPerLine; |
|
The number of bits per scanline. |
function MaskBytesPerLine; |
|
The number of bytes per Mask scanline. |
function MaskBitsPerLine; |
|
The number of bits per Mask scanline. |
function AsString; |
|
The image descriptor as a string. |
function IsEqual(); |
|
Compares with the given description, returns True if it's equal. |
end; |
|
Descriptor object for the image format of devices and raw (uncompressed) image data |
This effectivley is a record with some attached methods. More related procedures exist outside the object. [where?] The object describes the presence and exact storage of the RGBA image and mask pixels, of a device or image. The color information is stored in aligned scanlines. Note: palettes, BitOrder and ByteOrder seem not to be implemented yet. The meaning of the PaletteXXX values and of BitOrder is undefined, so far. xxxBitsPerPixel and xxxPrecisionMask applies to color data. For masked images, the pixels and the mask are two different arrays, containing different elements.
|
An uncompressed graphics image (bitmap) |
lazarus-ccr.sourceforge.net |