Castle Game Engine: CastleImages: Class TGrayscaleAlphaImage

# Class TGrayscaleAlphaImage
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleImages ## Declaration `type TGrayscaleAlphaImage = class(TCastleImage)` ## Description Grayscale image with an alpha channel. Each pixel is two bytes: grayscale + alpha. ## Hierarchy TObject TEncodedImage TCastleImage TGrayscaleAlphaImage ## Overview ### Methods
| `class function PixelSize: Cardinal; override;`
| `class function ColorComponentsCount: Cardinal; override;`
| `function PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector2Byte;`
| `function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PArray_Vector2Byte;`
| `procedure Clear(const Pixel: TVector2Byte); reintroduce;`
| `function IsClear(const Pixel: TVector2Byte): boolean; reintroduce;`
| `function HasAlpha: boolean; override;`
| `function AlphaChannel( const AlphaTolerance: Byte): TAlphaChannel; override;`
| `procedure LerpWith(const Value: Single; SecondImage: TCastleImage); override;`
| `class procedure MixColors(const OutputColor: Pointer; const Weights: TVector4Single; const Colors: TVector4Pointer); override;`
| `procedure Assign(const Source: TCastleImage); override;`
### Properties
| `property GrayscaleAlphaPixels: PVector2Byte read GetGrayscaleAlphaPixels;`
## Description ### Methods
| `class function PixelSize: Cardinal; override;`
| `class function ColorComponentsCount: Cardinal; override;`
| `function PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector2Byte;`
| `function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PArray_Vector2Byte;`
| `procedure Clear(const Pixel: TVector2Byte); reintroduce;`
| `function IsClear(const Pixel: TVector2Byte): boolean; reintroduce;`
| `function HasAlpha: boolean; override;`
| `function AlphaChannel( const AlphaTolerance: Byte): TAlphaChannel; override;`
| `procedure LerpWith(const Value: Single; SecondImage: TCastleImage); override;`
| `class procedure MixColors(const OutputColor: Pointer; const Weights: TVector4Single; const Colors: TVector4Pointer); override;`
| `procedure Assign(const Source: TCastleImage); override;`
### Properties
| `property GrayscaleAlphaPixels: PVector2Byte read GetGrayscaleAlphaPixels;`
This is the same pointer as RawPixels, only typecasted to PVector2Byte
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:10