TRawImage object
An uncompressed graphics image (bitmap).
Declaration
TRawImage = classDescription
This object hold the pixels, mask and color palette of the image, as well as a detailed description of the storage format of these parts.
This object currently is subject to refactoring, don't use it in application code.
Methods
Init | Init - initiator for the object. Don't use a constructor here, it will break compatibility with a record. | |
CreateData | CreateData - method to create the data for the record. | |
FreeData | Destroys the allocated Data, Mask and Palette arrays. | |
ReleaseData | ReleaseData - frees the resources when finished with the data. | |
ExtractRect | ExtractRect - find the position of the bounding rectangle from the raw data. | |
GetLineStart | Gets a pointer to the byte position at the beginning of the specified scanline. | |
PerformEffect | PerformEffect - applies a specified special effect to the data of the Raw Image. | |
ReadBits | ReadBits - reads the bit values for the raw image data at a given position. | |
ReadChannels | Reads the Red, Green, Blue and Alpha channel values at a given position in pixel data. | |
ReadMask | Reads the Mask value at the given position in the image data. | |
WriteBits | Writes ABits into Data at the given position. | |
WriteChannels | WriteChannels - writes the specified channel values at the nominated position. | |
WriteMask | Writes the mask for the raw image when assigned and given a valid bit depth in the image description. | |
IsMasked | IsMasked - returns True if the specified pixels are masked. | |
IsTransparent | IsTransparent - returns True if the specified pixels are transparent. | |
IsEqual | IsEqual - returns True if the current and specified images are equal. |
Fields
Description | Description record for the Raw Image. | |
Data | Data - a pointer to the actual data of the image. | |
DataSize | DataSize - pointer to the size of the image. | |
Mask | Mask - pointer to the Mask for use with the image. | |
MaskSize | MaskSize - pointer to the size of the mask. | |
Palette | Palette - pointer to the palette of colors for this image. | |
PaletteSize | PaletteSize - pointer to the size of the palette. |
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
