Declarations ​
procedure Set_sRGB; overload;
procedure Set_sRGB(var GammaTable: TGammaTable8Bit); overload;Overload Details
Overload 1 ​
procedure Set_sRGB; overload;Populates global encoding and decoding tables with sRGB transfer functions, sets GAMMA_IS_SRGB to True, and notifies change listeners.
Overload 2 ​
procedure Set_sRGB(var GammaTable: TGammaTable8Bit); overload;Populates a custom 256-byte lookup table with standard forward sRGB transfer function values (linear light to sRGB space).
| Parameter | Type | Description |
|---|---|---|
GammaTable | TGammaTable8Bit | Target 256-byte table array to receive sRGB values. |
Description ​
Set_sRGB populates gamma lookup tables according to the standard sRGB (IEC 61966-2-1) piecewise transfer function.
The parameterless overload populates GAMMA_ENCODING_TABLE with the forward sRGB curve (linear GAMMA_DECODING_TABLE with the inverse sRGB curve (sRGB GAMMA_IS_SRGB to True, and invokes delegates registered with RegisterGammaChangeNotification.
Formula ​
For a normalized channel input
Example ​
// Configure global gamma tables to use standard sRGB transfer functions
Set_sRGB;