Package org.eclipse.imagen.media.scale
Class Scale2CRIF
- All Implemented Interfaces:
ContextualRenderedImageFactory,RenderedImageFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ParameterBlock paramBlock, RenderingHints renderHints) Creates a new instance of ScaleOpImage in the rendered layer.create(RenderContext renderContext, ParameterBlock paramBlock) Creates a new instance ofAffineOpImagein the renderable layer.getBounds2D(ParameterBlock paramBlock) Gets the bounding box for the output ofScaleOpImage.mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image) Maps the output RenderContext into the RenderContext for the ith source.Methods inherited from class CRIFImpl
getProperty, getPropertyNames, isDynamic
-
Constructor Details
-
Scale2CRIF
public Scale2CRIF()Constructor.
-
-
Method Details
-
create
Creates a new instance of ScaleOpImage in the rendered layer. This method satisfies the implementation of RIF.- Specified by:
createin interfaceRenderedImageFactory- Specified by:
createin classCRIFImpl- Parameters:
paramBlock- The source image, the X and Y scale factor, and the interpolation method for resampling.
-
create
Creates a new instance ofAffineOpImagein the renderable layer. This method satisfies the implementation of CRIF.- Specified by:
createin interfaceContextualRenderedImageFactory- Overrides:
createin classCRIFImpl- Parameters:
renderContext- The rendering information associated with this rendering.paramBlock- The parameters used to create the image.- Returns:
- A
RenderedImage.
-
mapRenderContext
public RenderContext mapRenderContext(int i, RenderContext renderContext, ParameterBlock paramBlock, RenderableImage image) Maps the output RenderContext into the RenderContext for the ith source. This method satisfies the implementation of CRIF.- Specified by:
mapRenderContextin interfaceContextualRenderedImageFactory- Overrides:
mapRenderContextin classCRIFImpl- Parameters:
i- The index of the source image.renderContext- The renderContext being applied to the operation.paramBlock- The ParameterBlock containing the sources and the translation factors.image- The RenderableImageOp from which this method was called.- Returns:
- The
RenderContextto be used to render the given source.
-
getBounds2D
Gets the bounding box for the output ofScaleOpImage. This method satisfies the implementation of CRIF.- Specified by:
getBounds2Din interfaceContextualRenderedImageFactory- Overrides:
getBounds2Din classCRIFImpl- Parameters:
paramBlock- AParameterBlockcontaining the sources and parameters of the operation.- Returns:
- A
Rectangle2Dspecifying the bounding box.
-