java.awt
Interface CompositeContext


public interface CompositeContext

This interface provides an optimized environment for compositing graphics. Several such contexts may exist for a given Composite object.

Since:
1.2
See Also:
Composite

Method Summary
 void compose(Raster src, Raster dstIn, WritableRaster dstOut)
          Compose the two source images into the composite image.
 void dispose()
          Release resources allocated for the compositing.
 

Method Detail

dispose

void dispose()
Release resources allocated for the compositing.


compose

void compose(Raster src,
             Raster dstIn,
             WritableRaster dstOut)
Compose the two source images into the composite image. The destination can be the same as one of the two inputs, and the destination must be compatible with the ColorModel chosen in Composite.createContext(java.awt.image.ColorModel, java.awt.image.ColorModel, java.awt.RenderingHints).

Parameters:
src - the lower image source in compositing
dstIn - the upper image source in compositing
dstOut - the destination for the composite
See Also:
Composite