Class ImageData

java.lang.Object
io.github.stanio.xbrz.awt.ImageData

public final class ImageData extends Object
Encapsulates packed image data in a convenient form for input to Xbrz.
  • Field Details

    • width

      public final int width
    • height

      public final int height
    • hasAlpha

      public final boolean hasAlpha
  • Method Details

    • get

      public static ImageData get(Image image)
      Obtains image-data from the given source.

      Note, the returned data may indicate animated == true in which case the instance doesn't contain pixel data and can't be used as argument to methods that otherwise accept image-data as input.

      Parameters:
      image - source image to obtain image-data from
      Returns:
      image-data of the given source, or null if error occurs
      See Also:
    • isAnimated

      public boolean isAnimated()