Class TRGBFloatImage
Unit
CastleImages
Declaration
type TRGBFloatImage = class(TCastleImage)
Description
Image with high-precision RGB colors encoded as 3 floats.
Hierarchy
Overview
Methods
Properties
Description
Methods
|
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 PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector3; |
|
|
function RowPtr(const Y: Cardinal; const Z: Cardinal = 0): PVector3Array; |
|
|
procedure InvertColors; override; |
|
|
procedure Clear(const Pixel: TVector4Byte); overload; override; |
|
|
function IsClear(const Pixel: TVector4Byte): boolean; overload; override; |
|
|
procedure Clear(const Pixel: TVector3); reintroduce; overload; |
|
|
function IsClear(const Pixel: TVector3): boolean; reintroduce; overload; |
|
|
function ToRGBImage: TRGBImage; deprecated 'create TRGBImage and use TRGBImage.Assign'; |
Warning: this symbol is deprecated: create TRGBImage and use TRGBImage.Assign
Converts TRGBFloatImage to TRGBImage. Colors in pixels are simply rounded using Vector3Byte. So such conversion not only kills the floating-point precision in float format but also clamps color components to 0..1.
|
|
function ToFpImage: TInternalCastleFpImage; override; |
|
|
procedure ScaleColors(const Scale: Single); |
Every component (red, green, blue) of every pixel is multiplied by Scale.
|
|
procedure ExpColors(const Exp: Single); |
Every component (red, green, blue) or every pixel is changed to Power(Value, Exp). So e.g. Exp = 1/2.2 gives commonly used gamma correction.
|
|
procedure LerpWith(const Value: Single; SecondImage: TCastleImage); override; |
|
|
class procedure MixColors(const OutputColor: Pointer; const Weights: TVector4; const AColors: TVector4Pointer); override; |
|
Properties
|
property RGBFloatPixels: PVector3 read GetPixels; deprecated 'use Pixels'; |
Warning: this symbol is deprecated: use Pixels |
Generated by PasDoc 0.16.0.