javax.media.jai.operator
Class AWTImageDescriptor

java.lang.Object
  |
  +--javax.media.jai.OperationDescriptorImpl
        |
        +--javax.media.jai.operator.AWTImageDescriptor
All Implemented Interfaces:
OperationDescriptor, RegistryElementDescriptor, Serializable

public class AWTImageDescriptor
extends OperationDescriptorImpl

An OperationDescriptor describing the "AWTImage" operation.

The AWTImage operation converts a standard java.awt.Image into a rendered image. By default, the width and height of the image are the same as the original AWT image. The sample model and color model are set according to the AWT image data.

Resource List
Name Value
GlobalName AWTImage
LocalName AWTImage
Vendor com.sun.media.jai
Description Converts a java.awt.Image into a rendered image.
DocURL http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/AWTImageDescriptor.html
Version 1.0
arg0Desc The AWT image to be converted.

Parameter List
Name Class Type Default Value
awtImage java.awt.Image NO_PARAMETER_DEFAULT

See Also:
Image, OperationDescriptor, Serialized Form

Fields inherited from class javax.media.jai.OperationDescriptorImpl
resources, sourceNames, supportedModes
 
Fields inherited from interface javax.media.jai.OperationDescriptor
NO_PARAMETER_DEFAULT
 
Constructor Summary
AWTImageDescriptor()
          Constructor.
 
Method Summary
static RenderedOp create(Image awtImage, RenderingHints hints)
          Converts a java.awt.Image into a rendered image.
 
Methods inherited from class javax.media.jai.OperationDescriptorImpl
arePropertiesSupported, getDefaultSourceClass, getDestClass, getDestClass, getInvalidRegion, getName, getNumParameters, getNumSources, getParamClasses, getParamDefaults, getParamDefaultValue, getParameterListDescriptor, getParamMaxValue, getParamMinValue, getParamNames, getPropertyGenerators, getPropertyGenerators, getRenderableDestClass, getRenderableSourceClasses, getResourceBundle, getResources, getSourceClasses, getSourceClasses, getSourceNames, getSupportedModes, isImmediate, isModeSupported, isRenderableSupported, isRenderedSupported, makeDefaultSourceClassList, validateArguments, validateArguments, validateParameters, validateParameters, validateRenderableArguments, validateRenderableSources, validateSources, validateSources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTImageDescriptor

public AWTImageDescriptor()
Constructor.
Method Detail

create

public static RenderedOp create(Image awtImage,
                                RenderingHints hints)
Converts a java.awt.Image into a rendered image.

Creates a ParameterBlockJAI from all supplied arguments except hints and invokes JAI.create(String,ParameterBlock,RenderingHints).

Parameters:
awtImage - The AWT image to be converted.
hints - The RenderingHints to use. May be null.
Returns:
The RenderedOp destination.
Throws:
IllegalArgumentException - if awtImage is null.
See Also:
JAI, ParameterBlockJAI, RenderedOp