Class RawImageWriter

java.lang.Object
javax.imageio.ImageWriter
com.github.jaiimageio.impl.plugins.raw.RawImageWriter
All Implemented Interfaces:
ImageTranscoder

public class RawImageWriter extends ImageWriter
The Java Image IO plugin writer for encoding a binary RenderedImage into a Raw format.

The encoding process may clip, subsample or select bands using the parameters specified in the ImageWriteParam. Thus, when read this raw image the proper image data type should be provided.

See Also:
  • invalid reference
    com.github.jaiimageio.plugins.RawImageWriteParam
  • Field Details

    • stream

      private ImageOutputStream stream
      The output stream to write into
    • imageIndex

      private int imageIndex
      The image index in this stream.
    • tileWidth

      private int tileWidth
      The tile width for encoding
    • tileHeight

      private int tileHeight
      The tile height for encoding
    • tileXOffset

      private int tileXOffset
      The tile grid offset for encoding
    • tileYOffset

      private int tileYOffset
      The tile grid offset for encoding
    • scaleX

      private int scaleX
      The source -> destination transformation
    • scaleY

      private int scaleY
      The source -> destination transformation
    • xOffset

      private int xOffset
      The source -> destination transformation
    • yOffset

      private int yOffset
      The source -> destination transformation
    • sourceBands

      private int[] sourceBands
      The source bands to be encoded.
    • numBands

      private int numBands
      The number of components in the image
    • input

      private RenderedImage input
      The source raster if write raster.
    • inputRaster

      private Raster inputRaster
      The input source raster.
    • destinationRegion

      private Rectangle destinationRegion
    • sampleModel

      private SampleModel sampleModel
    • noTransform

      private boolean noTransform
      Coordinate transform or sub selection is needed before encoding.
    • noSubband

      private boolean noSubband
    • writeRaster

      private boolean writeRaster
      Indicates a raster rather than a RenderedImage to be encoded.
    • optimal

      private boolean optimal
      Whether can write optimally.
    • pxlStride

      private int pxlStride
      The strides for pixel, band, and scanline.
    • lineStride

      private int lineStride
      The strides for pixel, band, and scanline.
    • bandStride

      private int bandStride
      The strides for pixel, band, and scanline.
  • Constructor Details

    • RawImageWriter

      public RawImageWriter(ImageWriterSpi originator)
      Constructs RawImageWriter based on the provided ImageWriterSpi.
  • Method Details