Record TExpandedPixelBasicHelper

Hierarchy
Fields
Properties

Unit

Declaration

type TExpandedPixelBasicHelper = record helper for TExpandedPixel

Description

Helper for basic conversions of TExpandedPixel

Overview

Methods

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

Description

Methods

Public function ToBGRAPixel: TBGRAPixel;

Converts to TBGRAPixel (non linear 8-bit)

Public function ToColor: TColor;

Converts to TColor (non linear 8-bit, without alpha)

Public function ToFPColor(AGammaCompression: boolean = true): TFPColor;

Converts to TFPColor (16-bit per channel, by default non linear)

Public function ToGSBAPixel: TGSBAPixel;

Converts to TGSBAPixel

Public function ToHSLAPixel: THSLAPixel;

Converts to THSLAPixel

Public procedure FromBGRAPixel(AValue: TBGRAPixel);

Converts from TBGRAPixel (non linear 8-bit)

Public procedure FromColor(const AValue: TColor);

Converts from TColor (non linear 8-bit ,without alpha)

Public procedure FromFPColor(const AValue: TFPColor; AGammaExpansion: boolean = true);

Converts from TFPColor (16-bit per channel, by default non linear)

Public procedure FromGSBAPixel(const AValue: THSLAPixel); overload;

Converts from TGSBAPixel assuming the THSLAPixel record contains GSBA colorspace

Public procedure FromGSBAPixel(const AValue: TGSBAPixel); overload;

Converts from TGSBAPixel

Public procedure FromHSLAPixel(const AValue: THSLAPixel);

Converts from THSLAPixel