Record TGSBAPixelBasicHelper

Hierarchy
Fields
Properties

Unit

Declaration

type TGSBAPixelBasicHelper = record helper for TGSBAPixel

Description

Helper for basic conversion of TGSBAPixel

Overview

Methods

Public function ToBGRAPixel: TBGRAPixel;
Public function ToColor: TColor;
Public function ToExpanded: TExpandedPixel;
Public function ToFPColor(AGammaCompression: boolean=true): TFPColor;
Public function ToHSLAPixel: THSLAPixel;
Public procedure FromBGRAPixel(AValue: TBGRAPixel);
Public procedure FromColor(const AValue: TColor);
Public procedure FromExpanded(AValue: TExpandedPixel);
Public procedure FromFPColor(AValue: TFPColor; AGammaExpansion: boolean=true);
Public procedure FromHSLAPixel(AValue: THSLAPixel);

Description

Methods

Public function ToBGRAPixel: TBGRAPixel;

Converts to ToBGRAPixel (non linear 8-bit channel)

Public function ToColor: TColor;

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

Public function ToExpanded: TExpandedPixel;

Converts to TExpandedPixel

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

Converts to TFPColor (by default non linear)

Public function ToHSLAPixel: THSLAPixel;

Converts to THSLAPixel (regular hue and standard lightness)

Public procedure FromBGRAPixel(AValue: TBGRAPixel);

Converts from ToBGRAPixel (non linear 8-bit channel)

Public procedure FromColor(const AValue: TColor);

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

Public procedure FromExpanded(AValue: TExpandedPixel);

Converts from TExpandedPixel

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

Converts from TFPColor (by default non linear)

Public procedure FromHSLAPixel(AValue: THSLAPixel);

Converts from THSLAPixel (regular hue and standard lightness)