Class AbstractTiffImageWriter

    • Field Detail

      • byteOrder

        protected final java.nio.ByteOrder byteOrder
    • Constructor Detail

      • AbstractTiffImageWriter

        public AbstractTiffImageWriter()
      • AbstractTiffImageWriter

        public AbstractTiffImageWriter​(java.nio.ByteOrder byteOrder)
    • Method Detail

      • imageDataPaddingLength

        protected static int imageDataPaddingLength​(int dataLength)
      • applyPredictor

        private void applyPredictor​(int width,
                                    int bytesPerSample,
                                    byte[] b)
      • checkForActualAlpha

        private boolean checkForActualAlpha​(java.awt.image.BufferedImage src)
        Check an image to see if any of its pixels are non-opaque.
        Parameters:
        src - a valid image
        Returns:
        true if at least one non-opaque pixel is found.
      • getStrips

        private byte[][] getStrips​(java.awt.image.BufferedImage src,
                                   int samplesPerPixel,
                                   int bitsPerSample,
                                   int rowsPerStrip)
      • writeImageFileHeader

        protected void writeImageFileHeader​(AbstractBinaryOutputStream bos)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • writeImageFileHeader

        protected void writeImageFileHeader​(AbstractBinaryOutputStream bos,
                                            long offsetToFirstIFD)
                                     throws java.io.IOException
        Throws:
        java.io.IOException