Record TFPColorBasicHelper

Hierarchy
Fields
Properties

Unit

Declaration

type TFPColorBasicHelper = record helper for TFPColor

Description

Helper for basic conversions of TFPColor

Overview

Methods

Public function ToBGRAPixel: TBGRAPixel;
Public function ToColor: TColor;
Public function ToExpanded(AGammaExpansion: boolean = true): TExpandedPixel;
Public function ToGSBAPixel(AGammaExpansion: boolean = true): TGSBAPixel;
Public function ToHSLAPixel(AGammaExpansion: boolean = true): THSLAPixel;
Public procedure FromBGRAPixel(AValue: TBGRAPixel);
Public procedure FromColor(const AValue: TColor);
Public procedure FromExpanded(const AValue: TExpandedPixel; AGammaCompression: boolean = true);
Public procedure FromGSBAPixel(const AValue: THSLAPixel; AGammaCompression: boolean = true); overload;
Public procedure FromGSBAPixel(const AValue: TGSBAPixel; AGammaCompression: boolean = true); overload;
Public procedure FromHSLAPixel(const AValue: THSLAPixel; AGammaCompression: boolean = true);

Description

Methods

Public function ToBGRAPixel: TBGRAPixel;

Converts to TColor (8-bit)

Public function ToColor: TColor;

Converts to TColor (8-bit without alpha)

Public function ToExpanded(AGammaExpansion: boolean = true): TExpandedPixel;

Converts to TExpandedPixel (linear)

Public function ToGSBAPixel(AGammaExpansion: boolean = true): TGSBAPixel;

Converts to TGSBAPixel (linear)

Public function ToHSLAPixel(AGammaExpansion: boolean = true): THSLAPixel;

Converts to THSLAPixel (linear)

Public procedure FromBGRAPixel(AValue: TBGRAPixel);

Converts from TColor (8-bit)

Public procedure FromColor(const AValue: TColor);

Converts from TColor (8-bit without alpha)

Public procedure FromExpanded(const AValue: TExpandedPixel; AGammaCompression: boolean = true);

Converts from TExpandedPixel (linear)

Public procedure FromGSBAPixel(const AValue: THSLAPixel; AGammaCompression: boolean = true); overload;

Converts from TGSBAPixel (linear) assuming the THSLAPixel record contains GSBA colorspace

Public procedure FromGSBAPixel(const AValue: TGSBAPixel; AGammaCompression: boolean = true); overload;

Converts from TGSBAPixel (linear)

Public procedure FromHSLAPixel(const AValue: THSLAPixel; AGammaCompression: boolean = true);

Converts from THSLAPixel (linear)