function BlendReg(F, B: TColor32): TColor32;
procedure BlendMem(F: TColor32; var B: TColor32);
Mixes a foregrownd (F) color with the background color (B) using the alpha component of the foreground color.
SRGB = FA * FRGB + (1 – FA) * BRGB;
BlendReg takes parameters and produces the result operating on CPU registers.
BlendMem operates with the background color referenced by a memory address.
Using BlendMem is more efficient when blending/combining data to a bitmap, since it excludes writing operation for transparent pixels and reading operation for opaque ones.
Note, that after using the Blend function, you have to call EMMS. Otherwise CPU will be unable to handle floating point instructions.
Color Types, BlendEx, Combine, EMMS, Merge, MergeEx
Copyright ©2000-2016 Alex Denisov and the Graphics32 Team - Graphics32 v2.0 - Built on 25-April-2017