Record TFPColorBasicHelper
Unit
Declaration
type TFPColorBasicHelper = record helper for TFPColor
Description
Helper for basic conversions of TFPColor
Overview
Methods
![]() |
function ToBGRAPixel: TBGRAPixel; |
![]() |
function ToColor: TColor; |
![]() |
function ToExpanded(AGammaExpansion: boolean = true): TExpandedPixel; |
![]() |
function ToGSBAPixel(AGammaExpansion: boolean = true): TGSBAPixel; |
![]() |
function ToHSLAPixel(AGammaExpansion: boolean = true): THSLAPixel; |
![]() |
procedure FromBGRAPixel(AValue: TBGRAPixel); |
![]() |
procedure FromColor(const AValue: TColor); |
![]() |
procedure FromExpanded(const AValue: TExpandedPixel; AGammaCompression: boolean = true); |
![]() |
procedure FromGSBAPixel(const AValue: THSLAPixel; AGammaCompression: boolean = true); overload; |
![]() |
procedure FromGSBAPixel(const AValue: TGSBAPixel; AGammaCompression: boolean = true); overload; |
![]() |
procedure FromHSLAPixel(const AValue: THSLAPixel; AGammaCompression: boolean = true); |
Description
Methods
![]() |
function ToBGRAPixel: TBGRAPixel; |
Converts to TColor (8-bit) |
![]() |
function ToColor: TColor; |
Converts to TColor (8-bit without alpha) |
![]() |
function ToExpanded(AGammaExpansion: boolean = true): TExpandedPixel; |
Converts to TExpandedPixel (linear) |
![]() |
function ToGSBAPixel(AGammaExpansion: boolean = true): TGSBAPixel; |
Converts to TGSBAPixel (linear) |
![]() |
function ToHSLAPixel(AGammaExpansion: boolean = true): THSLAPixel; |
Converts to THSLAPixel (linear) |
![]() |
procedure FromBGRAPixel(AValue: TBGRAPixel); |
Converts from TColor (8-bit) |
![]() |
procedure FromColor(const AValue: TColor); |
Converts from TColor (8-bit without alpha) |
![]() |
procedure FromExpanded(const AValue: TExpandedPixel; AGammaCompression: boolean = true); |
Converts from TExpandedPixel (linear) |
![]() |
procedure FromGSBAPixel(const AValue: THSLAPixel; AGammaCompression: boolean = true); overload; |
Converts from TGSBAPixel (linear) assuming the THSLAPixel record contains GSBA colorspace |
![]() |
procedure FromGSBAPixel(const AValue: TGSBAPixel; AGammaCompression: boolean = true); overload; |
Converts from TGSBAPixel (linear) |
![]() |
procedure FromHSLAPixel(const AValue: THSLAPixel; AGammaCompression: boolean = true); |
Converts from THSLAPixel (linear) |