01: /*
02: * $RCSfile: GIFRIF.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:27 $
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 javax.media.jai.NullOpImage;
19: import javax.media.jai.OpImage;
20: import com.sun.media.jai.codec.ImageCodec;
21: import com.sun.media.jai.codec.ImageDecoder;
22: import com.sun.media.jai.codec.SeekableStream;
23:
24: /**
25: * A <code>RIF</code> supporting the "GIF" operation in the rendered
26: * layer.
27: *
28: * @since EA2
29: * @see javax.media.jai.operator.GIFDescriptor
30: *
31: */
32: public class GIFRIF implements RenderedImageFactory {
33:
34: /** Constructor. */
35: public GIFRIF() {
36: }
37:
38: /**
39: * Creates a <code>RenderedImage</code> representing the contents
40: * of a GIF-encoded image. Any layout information is ignored.
41: *
42: * @param paramBlock A <code>ParameterBlock</code> containing the GIF
43: * <code>SeekableStream</code> to read.
44: * @param renderHints An instance of <code>RenderingHints</code>,
45: * or null.
46: */
47: public RenderedImage create(ParameterBlock paramBlock,
48: RenderingHints renderHints) {
49: return CodecRIFUtil.create("gif", paramBlock, renderHints);
50: }
51: }
|