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.
BlendEx, Combine, EMMS, Merge, MergeEx, Color Types
Copyright ©2000-2012 Alex Denisov and the Graphics32 Team - Graphics32 v1.9.1 - Build on 28-August-2012