java.awt
Interface CompositeContext


public interface CompositeContext

The CompositeContext interface defines the encapsulated and optimized environment for a compositing operation. CompositeContext objects maintain state for compositing operations. In a multi-threaded environment, several contexts can exist simultaneously for a single Composite sample code for java.awt.Composite definition code for java.awt.Composite object.

See Also:
Composite sample code for java.awt.Composite definition code for java.awt.Composite

Method Summary
 void compose sample code for java.awt.CompositeContext.compose(java.awt.image.Raster, java.awt.image.Raster, java.awt.image.WritableRaster) definition code for java.awt.CompositeContext.compose(java.awt.image.Raster, java.awt.image.Raster, java.awt.image.WritableRaster) (Raster sample code for java.awt.image.Raster definition code for java.awt.image.Raster  src, Raster sample code for java.awt.image.Raster definition code for java.awt.image.Raster  dstIn, WritableRaster sample code for java.awt.image.WritableRaster definition code for java.awt.image.WritableRaster  dstOut)
          Composes the two source Raster sample code for java.awt.image.Raster definition code for java.awt.image.Raster objects and places the result in the destination WritableRaster sample code for java.awt.image.WritableRaster definition code for java.awt.image.WritableRaster .
 void dispose sample code for java.awt.CompositeContext.dispose() definition code for java.awt.CompositeContext.dispose() ()
          Releases resources allocated for a context.
 

Method Detail

dispose sample code for java.awt.CompositeContext.dispose() definition code for java.awt.CompositeContext.dispose()

void dispose()
Releases resources allocated for a context.


compose sample code for java.awt.CompositeContext.compose(java.awt.image.Raster, java.awt.image.Raster, java.awt.image.WritableRaster) definition code for java.awt.CompositeContext.compose(java.awt.image.Raster, java.awt.image.Raster, java.awt.image.WritableRaster)

void compose(Raster sample code for java.awt.image.Raster definition code for java.awt.image.Raster  src,
             Raster sample code for java.awt.image.Raster definition code for java.awt.image.Raster  dstIn,
             WritableRaster sample code for java.awt.image.WritableRaster definition code for java.awt.image.WritableRaster  dstOut)
Composes the two source Raster sample code for java.awt.image.Raster definition code for java.awt.image.Raster objects and places the result in the destination WritableRaster sample code for java.awt.image.WritableRaster definition code for java.awt.image.WritableRaster . Note that the destination can be the same object as either the first or second source. Note that dstIn and dstOut must be compatible with the dstColorModel passed to the createContext sample code for java.awt.Composite.createContext(java.awt.image.ColorModel, java.awt.image.ColorModel, java.awt.RenderingHints) definition code for java.awt.Composite.createContext(java.awt.image.ColorModel, java.awt.image.ColorModel, java.awt.RenderingHints) method of the Composite interface.

Parameters:
src - the first source for the compositing operation
dstIn - the second source for the compositing operation
dstOut - the WritableRaster into which the result of the operation is stored
See Also:
Composite sample code for java.awt.Composite definition code for java.awt.Composite