de.lmu.ifi.dbs.elki.data.images
Class BlendComposite.AverageBlendingContext

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.data.images.BlendComposite.BlendingContext
      extended by de.lmu.ifi.dbs.elki.data.images.BlendComposite.AverageBlendingContext
All Implemented Interfaces:
CompositeContext
Enclosing class:
BlendComposite

 class BlendComposite.AverageBlendingContext
extends BlendComposite.BlendingContext

Blending context for an "average" blending.


Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.data.images.BlendComposite.BlendingContext
alpha, ialpha
 
Constructor Summary
protected BlendComposite.AverageBlendingContext(ColorModel srcColorModel, ColorModel dstColorModel, double alpha)
          Constructor.
 
Method Summary
protected  int blend(int sA, int sR, int sG, int sB, int dA, int dR, int dG, int dB)
          The actual blending function for two colors.
 
Methods inherited from class de.lmu.ifi.dbs.elki.data.images.BlendComposite.BlendingContext
compose, dispose, mixAlpha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlendComposite.AverageBlendingContext

protected BlendComposite.AverageBlendingContext(ColorModel srcColorModel,
                                                ColorModel dstColorModel,
                                                double alpha)
Constructor.

Parameters:
srcColorModel - color model
dstColorModel - color model
alpha - Opacity value
Method Detail

blend

protected int blend(int sA,
                    int sR,
                    int sG,
                    int sB,
                    int dA,
                    int dR,
                    int dG,
                    int dB)
Description copied from class: BlendComposite.BlendingContext
The actual blending function for two colors.

Overrides:
blend in class BlendComposite.BlendingContext
Parameters:
sA - source alpha component (0-255)
sR - source red component (0-255)
sG - source green component (0-255)
sB - source blue component (0-255)
dA - destination alpha component (0-255)
dR - destination red component (0-255)
dG - destination green component (0-255)
dB - destination blues component (0-255)
Returns:
Combined color in single-integer ARGB format (see BlendComposite.combineComponents(int, int, int, int) and BlendComposite.BlendingContext.mixAlpha(int, int, int, int, int, int, int, int) helper functions)

Release 0.4.0 (2011-09-20_1324)