Class TRGBAlphaFloatImage

Unit

Declaration

type TRGBAlphaFloatImage = class(TCastleImage)

Description

Image with RGBA colors using Single (4 floating-point numbers for each pixel). For high-precision RGBA images. Compared to TRGBAlphaImage, each pixel is a floating-point number, which means it is more precise and can also be above 1.0 value (though they are still in 0..1 range when reading from normal image formats).

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): PVector4;
Public function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PVector4Array;

Properties

Public property Pixels: PVector4 read GetPixels;
Public property PixelsArray: PVector4Array 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): PVector4;

Pointer to given pixel.

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

Pointer to given row.

Properties

Public property Pixels: PVector4 read GetPixels;

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

Public property PixelsArray: PVector4Array read GetPixelsArray;

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


Generated by PasDoc 0.16.0.