java.awt
Class AlphaCompositeContext
java.lang.Object
|
+--java.awt.AlphaCompositeContext
- class AlphaCompositeContext
- extends Object
- implements CompositeContext
Constructor Summary |
AlphaCompositeContext(java.awt.image.ColorModel s,
java.awt.image.ColorModel d,
int rule,
float extraAlpha)
|
Method Summary |
void |
compose(java.awt.image.Raster src1,
java.awt.image.Raster src2,
java.awt.image.WritableRaster dst)
This method composes the two source tiles
and places the result in the destination tile. |
(package private) java.awt.image.WritableRaster |
convertRaster(java.awt.image.Raster inRaster,
java.awt.image.ColorModel inCM,
java.awt.image.ColorModel outCM)
|
void |
dispose()
Release resources allocated for context. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
srcCM
java.awt.image.ColorModel srcCM
dstCM
java.awt.image.ColorModel dstCM
srcNeedConvert
boolean srcNeedConvert
dstNeedConvert
boolean dstNeedConvert
rule
int rule
extraAlpha
float extraAlpha
AlphaCompositeContext
public AlphaCompositeContext(java.awt.image.ColorModel s,
java.awt.image.ColorModel d,
int rule,
float extraAlpha)
convertRaster
java.awt.image.WritableRaster convertRaster(java.awt.image.Raster inRaster,
java.awt.image.ColorModel inCM,
java.awt.image.ColorModel outCM)
dispose
public void dispose()
- Release resources allocated for context.
- Specified by:
- dispose in interface CompositeContext
compose
public void compose(java.awt.image.Raster src1,
java.awt.image.Raster src2,
java.awt.image.WritableRaster dst)
- This method composes the two source tiles
and places the result in the destination tile. Note that
the destination can be the same object as either
the first or second source.
- Specified by:
- compose in interface CompositeContext
- Parameters:
src1
- The first source tile for the compositing operation.src2
- The second source tile for the compositing operation.dst
- The tile where the result of the operation is stored.