Class TGrayscaleAlphaFloatImage

Unit

Declaration

type TGrayscaleAlphaFloatImage = class(TCastleImage)

Description

Image with each pixel represented as 2 floating-point numbers (Single): grayscale (luminance) and alpha (opacity).

Compared to TGrayscaleAlphaImage, each pixel is a floating-point number, which means it is more precise and can also be above 1.0 value.

Hierarchy

Overview

Methods

Protected function GetColors(const X, Y, Z: Integer): TCastleColor; override;
Protected procedure SetColors(const X, Y, Z: Integer; const C: TCastleColor); override;
Public class function PixelSize: Cardinal; override;
Public class function ColorComponentsCount: Cardinal; override;
Public procedure Assign(const Source: TCastleImage); override;
Public procedure InvertColors; override;
Public class procedure MixColors(const OutputColor: Pointer; const Weights: TVector4; const AColors: TVector4Pointer); override;
Public function PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector2;
Public function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PVector2Array;

Properties

Public property Pixels: PVector2 read GetPixels;
Public property PixelsArray: PVector2Array read GetPixelsArray;

Description

Methods

Protected function GetColors(const X, Y, Z: Integer): TCastleColor; override;
 
Protected procedure SetColors(const X, Y, Z: Integer; const C: TCastleColor); override;
 
Public class function PixelSize: Cardinal; override;
 
Public class function ColorComponentsCount: Cardinal; override;
 
Public procedure Assign(const Source: TCastleImage); override;
 
Public procedure InvertColors; override;
 
Public class procedure MixColors(const OutputColor: Pointer; const Weights: TVector4; const AColors: TVector4Pointer); override;
 
Public function PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector2;

Pointer to given pixel.

Public function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PVector2Array;

Pointer to given row.

Properties

Public property Pixels: PVector2 read GetPixels;

Pointer to pixels. Same as RawPixels, only typecasted to PVector2.

Public property PixelsArray: PVector2Array read GetPixelsArray;

Pointer to pixels. Same as RawPixels, only typecasted to PVector2Array.


Generated by PasDoc 0.16.0.