org.libtiff.jai.codecimpl
Class XTIFFImageEncoder

java.lang.Object
  extended by com.sun.media.jai.codec.ImageEncoderImpl
      extended by com.sun.media.jai.codecimpl.TIFFImageEncoder
          extended by org.libtiff.jai.codecimpl.XTIFFImageEncoder
All Implemented Interfaces:
com.sun.media.jai.codec.ImageEncoder

public class XTIFFImageEncoder
extends com.sun.media.jai.codecimpl.TIFFImageEncoder

A baseline TIFF writer. The writer outputs TIFF images in either Bilevel, Greyscale, Palette color or Full Color modes.


Field Summary
static int XTIFF_BILEVEL_BLACK_IS_ZERO
           
static int XTIFF_BILEVEL_WHITE_IS_ZERO
           
static int XTIFF_FULLCOLOR
           
static int XTIFF_GREYSCALE
           
static int XTIFF_PALETTE
           
 
Constructor Summary
XTIFFImageEncoder(java.io.OutputStream output, com.sun.media.jai.codec.ImageEncodeParam param)
          Standard constructor
 
Method Summary
 void encode(java.awt.image.RenderedImage im)
          Encodes a RenderedImage and writes the output to the OutputStream associated with this ImageEncoder.
 
Methods inherited from class com.sun.media.jai.codec.ImageEncoderImpl
encode, getOutputStream, getParam, setParam
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XTIFF_BILEVEL_WHITE_IS_ZERO

public static final int XTIFF_BILEVEL_WHITE_IS_ZERO
See Also:
Constant Field Values

XTIFF_BILEVEL_BLACK_IS_ZERO

public static final int XTIFF_BILEVEL_BLACK_IS_ZERO
See Also:
Constant Field Values

XTIFF_PALETTE

public static final int XTIFF_PALETTE
See Also:
Constant Field Values

XTIFF_FULLCOLOR

public static final int XTIFF_FULLCOLOR
See Also:
Constant Field Values

XTIFF_GREYSCALE

public static final int XTIFF_GREYSCALE
See Also:
Constant Field Values
Constructor Detail

XTIFFImageEncoder

public XTIFFImageEncoder(java.io.OutputStream output,
                         com.sun.media.jai.codec.ImageEncodeParam param)
Standard constructor

Method Detail

encode

public void encode(java.awt.image.RenderedImage im)
            throws java.io.IOException
Encodes a RenderedImage and writes the output to the OutputStream associated with this ImageEncoder.

Specified by:
encode in interface com.sun.media.jai.codec.ImageEncoder
Overrides:
encode in class com.sun.media.jai.codecimpl.TIFFImageEncoder
Throws:
java.io.IOException