Class TGrayscaleAlphaImage

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGrayscaleAlphaImage = class(TCastleImage)

Description

Grayscale image with an alpha channel. Each pixel is two bytes: grayscale + alpha.

Hierarchy

Overview

Methods

Public class function PixelSize: Cardinal; override;
Public class function ColorComponentsCount: Cardinal; override;
Public function PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector2Byte;
Public function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PArray_Vector2Byte;
Public procedure Clear(const Pixel: TVector2Byte); reintroduce;
Public function IsClear(const Pixel: TVector2Byte): boolean; reintroduce;
Public function HasAlpha: boolean; override;
Public function AlphaChannel( const AlphaTolerance: Byte): TAlphaChannel; override;
Public procedure LerpWith(const Value: Single; SecondImage: TCastleImage); override;
Public class procedure MixColors(const OutputColor: Pointer; const Weights: TVector4Single; const Colors: TVector4Pointer); override;

Properties

Public property GrayscaleAlphaPixels: PVector2Byte read GetGrayscaleAlphaPixels;

Description

Methods

Public class function PixelSize: Cardinal; override;
 
Public class function ColorComponentsCount: Cardinal; override;
 
Public function PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector2Byte;
 
Public function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PArray_Vector2Byte;
 
Public procedure Clear(const Pixel: TVector2Byte); reintroduce;
 
Public function IsClear(const Pixel: TVector2Byte): boolean; reintroduce;
 
Public function HasAlpha: boolean; override;
 
Public function AlphaChannel( const AlphaTolerance: Byte): TAlphaChannel; override;
 
Public procedure LerpWith(const Value: Single; SecondImage: TCastleImage); override;
 
Public class procedure MixColors(const OutputColor: Pointer; const Weights: TVector4Single; const Colors: TVector4Pointer); override;
 

Properties

Public property GrayscaleAlphaPixels: PVector2Byte read GetGrayscaleAlphaPixels;

This is the same pointer as RawPixels, only typecasted to PVector2Byte