Class 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
Description Converts a java.awt.Image into a rendered image.
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
resources, sourceNames, supportedModes
Fields inherited from interface
Constructor Summary
Method Summary
static RenderedOp create(Image awtImage, RenderingHints hints)
          Converts a java.awt.Image into a rendered image.
Methods inherited from class
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


public AWTImageDescriptor()
Method Detail


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).

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