Record THSLAPixelBasicHelper

Hierarchy
Fields
Properties

Unit

Declaration

type THSLAPixelBasicHelper = record helper for THSLAPixel

Description

Helper for basic conversions of THSLAPixel

Overview

Methods

Public function ToBGRAPixel: TBGRAPixel;
Public function ToColor: TColor;
Public function ToExpanded: TExpandedPixel;
Public function ToFPColor(AGammaCompression: boolean=true): TFPColor;
Public function ToGSBAPixel: TGSBAPixel;
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 FromGSBAPixel(AValue: TGSBAPixel);

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 ToExpanded: TExpandedPixel;

Converts to TExpandedPixel

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

Converts to TFPColor (non linear by default)

Public function ToGSBAPixel: TGSBAPixel;

Converts to TGSBAPixel (corrected hue and brightness)

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 FromExpanded(AValue: TExpandedPixel);

Converts from TExpandedPixel

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

Converts from TFPColor (non linear by default)

Public procedure FromGSBAPixel(AValue: TGSBAPixel);

Converts from TGSBAPixel (corrected hue and brightness)