Class FileInfo

    • Field Detail

      • width

        final int width
      • height

        final int height
      • rawbits

        final boolean rawbits
    • Constructor Detail

      • FileInfo

        FileInfo​(int width,
                 int height,
                 boolean rawbits)
    • Method Detail

      • hasAlpha

        abstract boolean hasAlpha()
      • getNumComponents

        abstract int getNumComponents()
      • getBitDepth

        abstract int getBitDepth()
      • getImageTypeDescription

        abstract java.lang.String getImageTypeDescription()
      • getMIMEType

        abstract java.lang.String getMIMEType()
      • getRGB

        abstract int getRGB​(WhiteSpaceReader wsr)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getRGB

        abstract int getRGB​(java.io.InputStream is)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • newline

        void newline()
      • readSample

        static int readSample​(java.io.InputStream is,
                              int bytesPerSample)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • scaleSample

        static int scaleSample​(int sample,
                               float scale,
                               int max)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readImage

        void readImage​(ImageBuilder imageBuilder,
                       java.io.InputStream is)
                throws java.io.IOException
        Throws:
        java.io.IOException