[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
An uncompressed graphics image (bitmap)
Source position: graphtype.pp line 188
type TRawImage = object |
||
|
Description record for the Raw Image |
|
|
Data - a pointer to the actual data of the image |
|
|
DataSize - pointer to the size of the image |
|
|
Mask - pointer to the Mask for use with the image |
|
|
MaskSize - pointer to the size of the mask |
|
|
Palette - pointer to the palette of colours for this image |
|
|
PaletteSize - pointer to the size of the palette |
|
procedure Init; |
|
Init - initiator for the object. Don't use a contructor here, it will break compatibility with a record |
procedure CreateData(); |
|
CreateData - method to create the data for the record |
procedure FreeData; |
|
Destroys the allocated Data, Mask and Palette arrays. |
procedure ReleaseData; |
|
ReleaseData - frees the resources when finished with th edata |
procedure ExtractRect(); |
|
ExtractRect - find the position of the bounding rectangle from the raw data |
procedure PerformEffect(); |
|
PerformEffect - applies a specified special effect to the data of the Raw Image |
function ReadBits(); |
|
ReadBits - reads the bit values for the raw image data at a given position |
procedure ReadChannels(); |
|
Reads the R, G, B and Alpha channel values at a given position in pixel data. |
procedure ReadMask(); |
|
Read the Mask value at the given position in the image data. Returns AMask=True if the pixel is transparent. |
procedure WriteBits(); |
|
Writes ABits into Data at the given position. |
procedure WriteChannels(); |
|
WriteChannels - writes the specified channel values at the nominated position |
procedure WriteMask(); |
||
function IsMasked(); |
|
IsMasked - returns True if the specified pixels are masked |
function IsTransparent(); |
|
IsTransparent - returns True if the specified pixels are transparent |
function IsEqual(); |
|
IsEqual - returns True if the current and specified images are equal |
end; |
|
An uncompressed graphics image (bitmap) |
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.
lazarus-ccr.sourceforge.net |