01: /*
02: * $RCSfile: PNGRIF.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:39 $
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.io.InputStream;
19: import javax.media.jai.Interpolation;
20: import javax.media.jai.JAI;
21: import javax.media.jai.NullOpImage;
22: import javax.media.jai.OpImage;
23: import javax.media.jai.OperationRegistry;
24: import javax.media.jai.RenderedOp;
25: import com.sun.media.jai.codec.ImageCodec;
26: import com.sun.media.jai.codec.ImageDecoder;
27: import com.sun.media.jai.codec.PNGDecodeParam;
28: import com.sun.media.jai.codec.SeekableStream;
29:
30: /**
31: * @since EA2
32: */
33: public class PNGRIF implements RenderedImageFactory {
34:
35: /** Constructor. */
36: public PNGRIF() {
37: }
38:
39: /**
40: * Creates a <code>RenderedImage</code> representing the contents
41: * of a PNM-encoded image.
42: *
43: * @param paramBlock A <code>ParameterBlock</code> containing the PNM
44: * <code>SeekableStream</code> to read.
45: * @param renderHints An instance of <code>RenderingHints</code>,
46: * or null.
47: */
48: public RenderedImage create(ParameterBlock paramBlock,
49: RenderingHints renderHints) {
50: return CodecRIFUtil.create("png", paramBlock, renderHints);
51: }
52: }
|