Class TGrayscaleFloatImage

Unit

Declaration

type TGrayscaleFloatImage = class(TCastleImage)

Description

Image with Single (floating-point number) for each pixel. Ideal for high-precision height maps. Compared to TGrayscaleImage, 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): PSingle;
Public function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PSingleArray;

Properties

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

Pointer to given pixel.

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

Pointer to given row.

Properties

Public property Pixels: PSingle read GetPixels;

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

Public property PixelsArray: PSingleArray read GetPixelsArray;

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


Generated by PasDoc 0.16.0.