de.lmu.ifi.dbs.elki.data.images
Class BlendComposite.AverageBlendingContext
java.lang.Object
de.lmu.ifi.dbs.elki.data.images.BlendComposite.BlendingContext
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.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlendComposite.AverageBlendingContext
protected BlendComposite.AverageBlendingContext(ColorModel srcColorModel,
ColorModel dstColorModel,
double alpha)
- Constructor.
- Parameters:
srcColorModel
- color modeldstColorModel
- color modelalpha
- Opacity value
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)