01: /*
02: * $RCSfile: IIPResolutionRIF.java,v $
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
05: *
06: * Use is subject to license terms.
07: *
08: * $Revision: 1.1 $
09: * $Date: 2005/02/11 04:56:29 $
10: * $State: Exp $
11: */
12: package com.sun.media.jai.opimage;
13:
14: import java.awt.RenderingHints;
15: import java.awt.image.RenderedImage;
16: import java.awt.image.renderable.ParameterBlock;
17: import java.awt.image.renderable.RenderedImageFactory;
18: import java.util.Map;
19:
20: /**
21: * A <code>RIF</code> supporting the "IIPResolution" operation in the
22: * rendered image layer.
23: *
24: * @see javax.media.jai.operator.IIPResolutionDescriptor
25: * @see IIPResolutionOpImage
26: *
27: * @since 1.0
28: *
29: */
30: public class IIPResolutionRIF implements RenderedImageFactory {
31:
32: /** Constructor. */
33: public IIPResolutionRIF() {
34: }
35:
36: /**
37: * Creates a new instance of <code>IIPResolutionOpImage</code>
38: * in the rendered layer. Any image layout information in
39: * the <code>RenderingHints</code> is ignored.
40: * This method satisfies the implementation of RIF.
41: */
42: public RenderedImage create(ParameterBlock args,
43: RenderingHints hints) {
44: return new IIPResolutionOpImage(hints, (String) args
45: .getObjectParameter(0), args.getIntParameter(1), args
46: .getIntParameter(2));
47: }
48: }
|