ewe.fx
Class ImageInfo

java.lang.Object
  extended byewe.fx.ImageInfo

public class ImageInfo
extends Object

This is used for storing information about an Image retrieved by Image.getImageInfo().


Field Summary
 boolean canScale
          If this is true it indicates that the image can be scaled while being decoded.
 int format
          This will be one of the FORMAT_XXX values.
static int FORMAT_BMP
           
static int FORMAT_GIF
           
static int FORMAT_JPEG
           
static int FORMAT_PNG
           
 int height
           
 Image image
          This is only valid when getting one image out of a set of multiple images.
 int pauseInMillis
          Pause after this image for the specified number of milliseconds.
 int size
          An estimate on the number of bytes required by the image when decoded.
 int width
           
 int x
           
 int y
           
 
Constructor Summary
ImageInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Field Detail

FORMAT_BMP

public static final int FORMAT_BMP
See Also:
Constant Field Values

FORMAT_PNG

public static final int FORMAT_PNG
See Also:
Constant Field Values

FORMAT_JPEG

public static final int FORMAT_JPEG
See Also:
Constant Field Values

FORMAT_GIF

public static final int FORMAT_GIF
See Also:
Constant Field Values

width

public int width

height

public int height

x

public int x

y

public int y

size

public int size
An estimate on the number of bytes required by the image when decoded.


format

public int format
This will be one of the FORMAT_XXX values.


canScale

public boolean canScale
If this is true it indicates that the image can be scaled while being decoded. This may be important if you are decoding very large images on a mobile device. If this is true then you can safely open a Stream to the image bytes and then use new Image(stream,0,maxWidth,maxHeight) to create an image that is a scaled down version of the original image without having to create a full version first.


pauseInMillis

public int pauseInMillis
Pause after this image for the specified number of milliseconds.


image

public Image image
This is only valid when getting one image out of a set of multiple images.

Constructor Detail

ImageInfo

public ImageInfo()