Declaration ​
pascal
procedure SetInv_sRGB(var GammaTable: TGammaTable8Bit);Parameters ​
| Parameter | Type | Description |
|---|---|---|
GammaTable | TGammaTable8Bit | Target 256-byte table array to receive inverse sRGB values. |
Description ​
SetInv_sRGB populates a custom TGammaTable8Bit array with inverse sRGB (sRGB space to linear light) transfer function values.
Formula ​
For a normalized channel input
Example ​
pascal
var
InvSRGBTable: TGammaTable8Bit;
begin
SetInv_sRGB(InvSRGBTable);
ApplyCustomGamma(Bitmap, InvSRGBTable);
end;