Class DDSHeader

    • Field Detail

      • LOG2

        private static final double LOG2
      • flags

        private int flags
      • mipMapCount

        private int mipMapCount
      • dimensions

        private java.awt.Dimension[] dimensions
      • pixelFormatFlags

        private int pixelFormatFlags
      • fourCC

        private int fourCC
      • bitCount

        private int bitCount
      • redMask

        private int redMask
      • greenMask

        private int greenMask
      • blueMask

        private int blueMask
      • alphaMask

        private int alphaMask
    • Constructor Detail

      • DDSHeader

        DDSHeader()
    • Method Detail

      • read

        static DDSHeader read​(javax.imageio.stream.ImageInputStream imageInput)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • log2

        private static double log2​(int v)
      • addDimensions

        private void addDimensions​(int width,
                                   int height)
      • hasFlag

        private boolean hasFlag​(int mask)
      • getWidth

        int getWidth​(int imageIndex)
      • getHeight

        int getHeight​(int imageIndex)
      • getMipMapCount

        int getMipMapCount()
      • getType

        DDSType getType()
                 throws javax.imageio.IIOException
        Throws:
        javax.imageio.IIOException
      • getRawType

        DDSType getRawType()
                    throws javax.imageio.IIOException
        Throws:
        javax.imageio.IIOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • dimensionToString

        private static java.lang.String dimensionToString​(java.awt.Dimension dimension)