Class TGrayscaleAlphaImage
Unit
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
procedure DrawFromCore(Source: TCastleImage; X, Y, SourceX, SourceY, SourceWidth, SourceHeight: Integer; const Mode: TDrawMode); override; |
|
function GetColors(const X, Y, Z: Integer): TCastleColor; override; |
|
procedure SetColors(const X, Y, Z: Integer; const C: TCastleColor); override; |
|
class function PixelSize: Cardinal; override; |
|
class function ColorComponentsCount: Cardinal; override; |
|
function ToGrayscaleImage: TGrayscaleImage; deprecated 'create TGrayscaleImage and use TGrayscaleImage.Assign'; |
|
function PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector2Byte; |
|
function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PVector2ByteArray; |
|
procedure InvertColors; override; |
|
procedure Clear(const Pixel: TVector4Byte); override; |
|
function IsClear(const Pixel: TVector4Byte): boolean; override; |
|
procedure Clear(const Pixel: TVector2Byte); reintroduce; overload; |
|
function IsClear(const Pixel: TVector2Byte): boolean; reintroduce; overload; |
|
function HasAlpha: boolean; override; |
|
function AlphaChannel( const AlphaTolerance: Byte): TAlphaChannel; override; |
|
function ToFpImage: TInternalCastleFpImage; override; |
|
procedure LerpWith(const Value: Single; SecondImage: TCastleImage); override; |
|
class procedure MixColors(const OutputColor: Pointer; const Weights: TVector4; const AColors: TVector4Pointer); override; |
|
procedure Assign(const Source: TCastleImage); override; |
|
procedure FillEllipse(const x, y: single; const aRadiusX, aRadiusY: single; const aColor: TCastleColor); override; |
|
procedure Ellipse(const x, y: single; const aRadiusX, aRadiusY: single; const aWidth: single; const aColor: TCastleColor); override; |
|
procedure FillRectangle(const x1, y1, x2, y2: single; const aColor: TCastleColor); override; |
|
procedure Rectangle(const x1, y1, x2, y2: single; const aWidth: single; const aColor: TCastleColor); override; |
|
procedure Line(const x1, y1, x2, y2: single; const aWidth: single; const aColor: TCastleColor); override; |
Properties
property Pixels: PVector2Byte read GetPixels; |
|
property GrayscaleAlphaPixels: PVector2Byte read GetPixels; deprecated 'use Pixels'; |
|
property PixelsArray: PVector2ByteArray read GetPixelsArray; |
Description
Methods
procedure DrawFromCore(Source: TCastleImage; X, Y, SourceX, SourceY, SourceWidth, SourceHeight: Integer; const Mode: TDrawMode); override; |
|
function GetColors(const X, Y, Z: Integer): TCastleColor; override; |
|
procedure SetColors(const X, Y, Z: Integer; const C: TCastleColor); override; |
|
class function PixelSize: Cardinal; override; |
|
class function ColorComponentsCount: Cardinal; override; |
|
function ToGrayscaleImage: TGrayscaleImage; deprecated 'create TGrayscaleImage and use TGrayscaleImage.Assign'; |
|
Warning: this symbol is deprecated: create TGrayscaleImage and use TGrayscaleImage.Assign Remove alpha channel. |
function PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector2Byte; |
|
function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PVector2ByteArray; |
|
procedure InvertColors; override; |
|
procedure Clear(const Pixel: TVector4Byte); override; |
|
function IsClear(const Pixel: TVector4Byte): boolean; override; |
|
procedure Clear(const Pixel: TVector2Byte); reintroduce; overload; |
|
function IsClear(const Pixel: TVector2Byte): boolean; reintroduce; overload; |
|
function HasAlpha: boolean; override; |
|
function AlphaChannel( const AlphaTolerance: Byte): TAlphaChannel; override; |
|
function ToFpImage: TInternalCastleFpImage; override; |
|
procedure LerpWith(const Value: Single; SecondImage: TCastleImage); override; |
|
class procedure MixColors(const OutputColor: Pointer; const Weights: TVector4; const AColors: TVector4Pointer); override; |
|
procedure Assign(const Source: TCastleImage); override; |
|
procedure FillEllipse(const x, y: single; const aRadiusX, aRadiusY: single; const aColor: TCastleColor); override; |
|
TODO: this should be implemented, just like for TRGBAlphaImage procedure AlphaBleed(const ProgressTitle: string = ''); override; function MakeAlphaBleed(const ProgressTitle: string = ''): TCastleImage; override; |
procedure Ellipse(const x, y: single; const aRadiusX, aRadiusY: single; const aWidth: single; const aColor: TCastleColor); override; |
|
procedure FillRectangle(const x1, y1, x2, y2: single; const aColor: TCastleColor); override; |
|
procedure Rectangle(const x1, y1, x2, y2: single; const aWidth: single; const aColor: TCastleColor); override; |
|
procedure Line(const x1, y1, x2, y2: single; const aWidth: single; const aColor: TCastleColor); override; |
|
Properties
property Pixels: PVector2Byte read GetPixels; |
|
Pointer to |
property GrayscaleAlphaPixels: PVector2Byte read GetPixels; deprecated 'use Pixels'; |
|
Warning: this symbol is deprecated: use Pixels |
property PixelsArray: PVector2ByteArray read GetPixelsArray; |
|
Pointer to pixels. Same as RawPixels, only typecasted to PVector2ByteArray. |
Generated by PasDoc 0.16.0.