Record TBGRAPixelBasicHelper
Unit
Declaration
type TBGRAPixelBasicHelper = record helper for TBGRAPixel
Description
Helper for basic conversions of TBGRAPixel
Overview
Methods
function ToColorF(AGammaExpansion: boolean): TColorF; |
|
function ToExpanded: TExpandedPixel; |
|
function ToGSBAPixel: TGSBAPixel; |
|
function ToHSLAPixel: THSLAPixel; |
|
procedure FromColorF(const AValue: TColorF; AGammaCompression: boolean); |
|
procedure FromExpanded(const AValue: TExpandedPixel); |
|
procedure FromGSBAPixel(const AValue: THSLAPixel); overload; |
|
procedure FromGSBAPixel(const AValue: TGSBAPixel); overload; |
|
procedure FromHSLAPixel(const AValue: THSLAPixel); |
Description
Methods
function ToColorF(AGammaExpansion: boolean): TColorF; |
|
Converts to TColorF, with or without gamma expansion |
function ToExpanded: TExpandedPixel; |
|
Converts to TExpandedPixel (linear 16-bit per channel) |
function ToGSBAPixel: TGSBAPixel; |
|
Converts to TGSBAPixel (linear 16-bit per channel) |
function ToHSLAPixel: THSLAPixel; |
|
Converts to THSLAPixel (linear 16-bit per channel) |
procedure FromColorF(const AValue: TColorF; AGammaCompression: boolean); |
|
Converts from TColorF, with or without gamma compression |
procedure FromExpanded(const AValue: TExpandedPixel); |
|
Converts from TExpandedPixel (linear 16-bit per channel) |
procedure FromGSBAPixel(const AValue: THSLAPixel); overload; |
|
Converts from TGSBAPixel (linear 16-bit per channel) assuming the THSLAPixel record contains GSBA colorspace |
procedure FromGSBAPixel(const AValue: TGSBAPixel); overload; |
|
Converts from TGSBAPixel (linear 16-bit per channel) |
procedure FromHSLAPixel(const AValue: THSLAPixel); |
|
Converts from THSLAPixel (linear 16-bit per channel) |