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
 |
class function PixelSize: Cardinal; override; |
|
 |
class function ColorComponentsCount: Cardinal; override; |
|
 |
function PixelPtr(const X, Y: Cardinal; const Z: Cardinal = 0): PVector3Single; |
|
 |
procedure SetColorRGB(const x, y: Integer; const v: TVector3Single); override; |
|
 |
function ToRGBImage: TRGBImage; |
Converts TRGBFloatImage to TRGBImage. Colors in pixels are simply rounded using Vector3Byte. So such convertion not only kills the floating-point precision in float format but also clamps color components to 0..1.
|
 |
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; |
|
Properties
Generated by PasDoc 0.13.0 on 2014-04-30 22:06:43
|