Home
|
GR32_Filters
|
|
procedure ApplyLUT(Dst, Src: TCustomBitmap32; const LUT: TLUT8; PreserveAlpha: Boolean = False);
Converts color from Src to Dst using a look-up table (LUT parameter) to map the color components. The alpha channel of the result is set to $FF by default. However, you can override this behaviour by setting PreserveAlpha to True.
RDST = LUT[RSRC];
GDST = LUT[GSRC];
BDST = LUT[BSRC];
If PreserveAlpha then ADST = ASRC else ADST = $FF;
This function supports in-place operation, that is Dst may be the same as Src.
Copyright ©2000-2010 Alex Denisov and the Graphics32 Team - Graphics32 v1.9.0 (r1336) - Build on 9-March-2010