
class BlendComposite.AverageBlendingContext extends BlendComposite.BlendingContext
alpha, ialpha| Modifier | Constructor and Description |
|---|---|
protected |
BlendComposite.AverageBlendingContext(ColorModel srcColorModel,
ColorModel dstColorModel,
double alpha)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
compose, dispose, mixAlphaprotected BlendComposite.AverageBlendingContext(ColorModel srcColorModel, ColorModel dstColorModel, double alpha)
srcColorModel - color modeldstColorModel - color modelalpha - Opacity valueprotected int blend(int sA,
int sR,
int sG,
int sB,
int dA,
int dR,
int dG,
int dB)
BlendComposite.BlendingContextblend in class BlendComposite.BlendingContextsA - 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)BlendComposite.combineComponents(int, int, int, int) and BlendComposite.BlendingContext.mixAlpha(int, int, int, int, int, int, int, int)
helper functions)