Record TBGRAPixelBasicHelper

Hierarchy
Fields
Properties

Unit

Declaration

type TBGRAPixelBasicHelper = record helper for TBGRAPixel

Description

Helper for basic conversions of TBGRAPixel

Overview

Methods

Public function ToColorF(AGammaExpansion: boolean): TColorF;
Public function ToExpanded: TExpandedPixel;
Public function ToGSBAPixel: TGSBAPixel;
Public function ToHSLAPixel: THSLAPixel;
Public procedure FromColorF(const AValue: TColorF; AGammaCompression: boolean);
Public procedure FromExpanded(const AValue: TExpandedPixel);
Public procedure FromGSBAPixel(const AValue: THSLAPixel); overload;
Public procedure FromGSBAPixel(const AValue: TGSBAPixel); overload;
Public procedure FromHSLAPixel(const AValue: THSLAPixel);

Description

Methods

Public function ToColorF(AGammaExpansion: boolean): TColorF;

Converts to TColorF, with or without gamma expansion

Public function ToExpanded: TExpandedPixel;

Converts to TExpandedPixel (linear 16-bit per channel)

Public function ToGSBAPixel: TGSBAPixel;

Converts to TGSBAPixel (linear 16-bit per channel)

Public function ToHSLAPixel: THSLAPixel;

Converts to THSLAPixel (linear 16-bit per channel)

Public procedure FromColorF(const AValue: TColorF; AGammaCompression: boolean);

Converts from TColorF, with or without gamma compression

Public procedure FromExpanded(const AValue: TExpandedPixel);

Converts from TExpandedPixel (linear 16-bit per channel)

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

Converts from TGSBAPixel (linear 16-bit per channel) assuming the THSLAPixel record contains GSBA colorspace

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

Converts from TGSBAPixel (linear 16-bit per channel)

Public procedure FromHSLAPixel(const AValue: THSLAPixel);

Converts from THSLAPixel (linear 16-bit per channel)