PEGTOP
 pegtop.net  >  delphi section  >  articles  >  blend modes  >  RGB modes 

 delphi section 

 articles 
 blend modes 
 introduction 
 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 
 opacity 
 dark modes 
 bright modes 
 final words 

 components 

 about me 

RGB (reg, green, blue) modes
Description:
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