Search in sources :

Example 1 with WritablePropertySource

use of javax.media.jai.WritablePropertySource in project imageio-ext by geosolutions-it.

the class ImageReadMTCRIF method create.

public RenderedImage create(RenderContext rc, ParameterBlock pb) {
    RenderableImage renderableImage = createRenderable(pb, rc.getRenderingHints());
    RenderedImage renderedImage = renderableImage.createRendering(rc);
    ((WritablePropertySource) renderedImage).setProperty(ImageReadDescriptor.PROPERTY_NAME_RENDERABLE_INPUT, (PropertySource) renderableImage);
    return renderedImage;
}
Also used : RenderableImage(java.awt.image.renderable.RenderableImage) MultiResolutionRenderableImage(javax.media.jai.MultiResolutionRenderableImage) RenderedImage(java.awt.image.RenderedImage) WritablePropertySource(javax.media.jai.WritablePropertySource)

Aggregations

RenderedImage (java.awt.image.RenderedImage)1 RenderableImage (java.awt.image.renderable.RenderableImage)1 MultiResolutionRenderableImage (javax.media.jai.MultiResolutionRenderableImage)1 WritablePropertySource (javax.media.jai.WritablePropertySource)1