Class WinICOFileFormat


public final class WinICOFileFormat extends FileFormat.StaticImageFileFormat
  • Constructor Details

    • WinICOFileFormat

      public WinICOFileFormat()
  • Method Details

    • bitInvertData

      byte[] bitInvertData(byte[] data, int startIndex, int endIndex)
    • convertPad

      static byte[] convertPad(byte[] data, int width, int height, int depth, int pad, int newPad)
    • iconSize

      int iconSize(ImageData i)
      Answer the size in bytes of the file representation of the given icon
    • isFileFormat

      boolean isFileFormat(LEDataInputStream stream) throws IOException
      Description copied from class: FileFormat
      Return whether or not the specified input stream represents a supported file format.
      Specified by:
      isFileFormat in class FileFormat
      Throws:
      IOException
    • isValidIcon

      boolean isValidIcon(ImageData i)
    • loadFileHeader

      int loadFileHeader(LEDataInputStream byteStream)
    • loadFileHeader

      int loadFileHeader(LEDataInputStream byteStream, boolean hasHeader)
    • loadFromByteStream

      ImageData[] loadFromByteStream()
      Specified by:
      loadFromByteStream in class FileFormat.StaticImageFileFormat
    • loadIcon

      ImageData loadIcon(int[] iconHeader)
      Load one icon from the byte stream.
    • loadIconHeaders

      int[][] loadIconHeaders(int numIcons)
    • loadInfoHeader

      byte[] loadInfoHeader(int[] iconHeader)
    • unloadIcon

      void unloadIcon(ImageData icon)
      Unload a single icon
    • unloadIconHeader

      void unloadIconHeader(ImageData i)
      Unload the icon header for the given icon, calculating the offset.
    • unloadIntoByteStream

      void unloadIntoByteStream(ImageLoader loader)
      Specified by:
      unloadIntoByteStream in class FileFormat
    • unloadMaskData

      void unloadMaskData(ImageData icon)
      Unload the mask data for an icon. The data is flipped vertically and inverted.
    • unloadShapeData

      void unloadShapeData(ImageData icon)
      Unload the shape data for an icon. The data is flipped vertically.