Package com.bc.ceres.jai.operator
Class PaintDescriptor
java.lang.Object
javax.media.jai.OperationDescriptorImpl
com.bc.ceres.jai.operator.PaintDescriptor
- All Implemented Interfaces:
Serializable
,javax.media.jai.OperationDescriptor
,javax.media.jai.RegistryElementDescriptor
public class PaintDescriptor
extends javax.media.jai.OperationDescriptorImpl
An
OperationDescriptor
describing the "Paint" operation.
- See Also:
-
Field Summary
Fields inherited from class javax.media.jai.OperationDescriptorImpl
sourceNames, supportedModes
Fields inherited from interface javax.media.jai.OperationDescriptor
NO_PARAMETER_DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javax.media.jai.RenderedOp
create
(RenderedImage source0, RenderedImage source1, Color paintColor, Boolean alphaIsFirst, RenderingHints hints) Paints.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
-
Constructor Details
-
PaintDescriptor
public PaintDescriptor()Constructor.
-
-
Method Details
-
create
public static javax.media.jai.RenderedOp create(RenderedImage source0, RenderedImage source1, Color paintColor, Boolean alphaIsFirst, RenderingHints hints) Paints.- Parameters:
source0
- The source image to paint on.source1
- The paint mask. Must be a one-banded image of type BYTE.paintColor
- The paint color.alphaIsFirst
- Whether alpha is the first bandhints
- TheRenderingHints
to use. May benull
.- Returns:
- The
RenderedOp
destination. - Throws:
IllegalArgumentException
- ifsource0
orfunction
isnull
.- See Also:
-