PEGTOP  >  delphi section  >  articles  >  blend modes  >  RGB modes 

 delphi section 

 blend modes 
 normal mode 
 average mode 
 multiply mode 
 screen mode 
 darken mode 
 lighten mode 
 difference modes 
 overlay mode 
 hard light mode 
 soft light mode 
 dodge modes 
 burn modes 
 quadratic modes 
 additive modes 
 interpolation mode 
 logical modes 
 RGB modes 
 HSL modes 
 dark modes 
 bright modes 
 final words 


 about me 

RGB (reg, green, blue) modes
These modes are different to the modes above, because not the same formula is applied to all color channels. A single color channel is extracted from the blend image, the other color channels are taken from the base image.

Formula (for red):
fred(a,b) = bred
fgreen(a,b) = agreen
fblue(a,b) = ablue

For green and blue mode simply permutate the formula above. You can also create cyan, magenta and yellow modes if you assign b to two channels and a to one channel only.

red mode

green mode

blue mode

Code (for red):
index | previous page | next page
© Copyright 2006 by PEGTOP Software