java.lang.Object
io.github.stanio.xbrz.awt.ImageData
Encapsulates packed image data in a convenient form for input to
Xbrz
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageData
Obtains image-data from the given source.boolean
-
Field Details
-
width
public final int width -
height
public final int height -
hasAlpha
public final boolean hasAlpha
-
-
Method Details
-
get
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()
-