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