http://www.eteks.com

com.eteks.awt.image
クラス GIFDecoder

java.lang.Object
  |
  +--com.eteks.awt.image.GIFDecoder
すべての実装インタフェース:
java.awt.image.ImageProducer

public class GIFDecoder
extends java.lang.Object
implements java.awt.image.ImageProducer

An ImageProducer implementation that builds an image from a GIF input stream.
Image data is sent to consumers only when image build is complete. This class can be used without any link to java.awt package and an AWT toolkit.
The color model for this image is either an instance of java.awt.image.IndexColorModel or the default ARGB model. Default RGB model is used if java.awt.image.ColorModel class can't be instantiated for security or other reason (java.awt.image.ColorModel requires AWT library to be loaded). In that case, the method setPixels () of the interface java.awt.image.ImageConsumer will be called with the color model parameter set to null. No support for animated GIFs.

導入されたバージョン:
PJA1.2
バージョン:
2.4
作成者:
Emmanuel Puybaret

コンストラクタの概要
GIFDecoder(java.io.InputStream input)
          Creates an instance of a GIF decoder for further reading from input.
GIFDecoder(java.io.InputStream input, boolean closeWhenFinished)
          Creates an instance of a GIF decoder for further reading from input.
 
メソッドの概要
 void addConsumer(java.awt.image.ImageConsumer ic)
          ImageProducer implementation.
 boolean isConsumer(java.awt.image.ImageConsumer ic)
          ImageProducer implementation.
 void removeConsumer(java.awt.image.ImageConsumer ic)
          ImageProducer implementation.
 void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
          ImageProducer implementation.
 void startProduction(java.awt.image.ImageConsumer ic)
          ImageProducer implementation.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

GIFDecoder

public GIFDecoder(java.io.InputStream input)
Creates an instance of a GIF decoder for further reading from input. Image reading from the stream starts only at startProduction () or addConsumer () call. By default, input isn't closed once image reading is done.

GIFDecoder

public GIFDecoder(java.io.InputStream input,
                  boolean closeWhenFinished)
Creates an instance of a GIF decoder for further reading from input. Image reading from the stream starts only at startProduction () or addConsumer () call.
パラメータ:
input - an input stream
closeWhenFinished - if true then input will be closed once image reading will be done.
導入されたバージョン:
PJA2.4
メソッドの詳細

startProduction

public void startProduction(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
定義:
インタフェース java.awt.image.ImageProducer 内の startProduction

addConsumer

public void addConsumer(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
定義:
インタフェース java.awt.image.ImageProducer 内の addConsumer

isConsumer

public boolean isConsumer(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
定義:
インタフェース java.awt.image.ImageProducer 内の isConsumer

removeConsumer

public void removeConsumer(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
定義:
インタフェース java.awt.image.ImageProducer 内の removeConsumer

requestTopDownLeftRightResend

public void requestTopDownLeftRightResend(java.awt.image.ImageConsumer ic)
ImageProducer implementation.
定義:
インタフェース java.awt.image.ImageProducer 内の requestTopDownLeftRightResend

© 1997-2001 eTeks - All rights reserved