Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

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

 class BlendComposite.MultiplyBlendingContext
extends BlendComposite.BlendingContext

Blending context for a "multiply" blending.

Author:
Erich Schubert

Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.data.images.BlendComposite.BlendingContext
alpha, ialpha
 
Constructor Summary
protected BlendComposite.MultiplyBlendingContext(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.MultiplyBlendingContext

protected BlendComposite.MultiplyBlendingContext(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.3 (2010-03-31_1612)