[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'GraphType' (#lcl)

# TRawImage

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TRawImage a Raw Image (such as a digital photograph before compression)

## Declaration

Source position: graphtype.pp line 186

`type TRawImage = object`
`Description: TRawImageDescription;` |  | Description record for the Raw Image
`Data: PByte;` |  | Data - a pointer to the actual data of the image
`DataSize: PtrUInt;` |  | DataSize - pointer to the size of the image
`Mask: PByte;` |  | Mask - pointer to the Mask for use with the image
`MaskSize: PtrUInt;` |  | MaskSize - pointer to the size of the mask
`Palette: PByte;` |  | Palette - pointer to the palette of colours for this image
`PaletteSize: PtrUInt;` |  | 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;` |  | FreeData - releases data that had previously been locked or made unavailable
`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();` |  | ReadChannels - reads the (R, G, B, Alpha) channel values at a given position in the raw data
`procedure ReadMask();` |  | ReadMask - reads the Mask data at the given position in the raw image
`procedure WriteBits();` |  | WriteBits - writes the specified bit values at the nominated position in the data
`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;`

## Inheritance

`TRawImage` |  | TRawImage a Raw Image (such as a digital photograph before compression)

The latest version of this document can be found at lazarus-ccr.sourceforge.net.