|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--waba.fx.Image
|
+--superwaba.ext.xplat.fx.gif.GifImage
A GifImage is simply a waba.fx.Image, except for its specific constructor.
Multi-frame GIFs are supported via the getAllFrames method.
| Fields inherited from class waba.fx.Image |
height,
palRGBs,
pixels,
savingPal,
transparentColor,
transparentPixel,
width |
| Constructor Summary | |
GifImage()
Default Constructor You can call this constructor and then call load(Stream), although the use of the other constructors is better. |
|
GifImage(Stream gifStream)
Constructor Creates the first image found in the given waba.io.Stream |
|
GifImage(Stream gifStream,
int imageNo)
Constructor Creates the given image number found in the given waba.io.Stream |
|
GifImage(java.lang.String fileName)
Constructor Creates the first image found in the given file which belongs to the application pdb or an attached library. |
|
GifImage(java.lang.String fileName,
int imageNo)
Constructor Creates the given image number found in the given file which belongs to the application pdb or an attached library. |
|
| Method Summary | |
void |
copyFrom(Image img)
Internal use only |
static Image[] |
getAllFrames(Stream gifStream)
Return an array of Images from reading a waba.io.stream containing a multi-frame image. |
static Image[] |
getAllFrames(java.lang.String fileName)
Return an array of Images from reading the multi-frame given file, which belongs to the application pdb or an attached library. |
void |
load(Stream gifStream)
Implements the method to let us load the first image found in the given waba.io.Stream. Must be called only once per image. |
void |
load(Stream gifStream,
int imageNo)
Load the the given image number found in the given waba.io.Stream. |
| Methods inherited from class waba.fx.Image |
applyPalette,
changeColors,
createBmp,
free,
getGraphics,
getHeight,
getPalette,
getPixelRow,
getRotatedScaledInstance,
getScaledInstance,
getTouchedUpInstance,
getTransparentColor,
getWidth,
saveTo,
scaledBy,
setPalette,
setTransparentColor |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public GifImage()
public GifImage(java.lang.String fileName)
throws ImageError
fileName - name of the image file
public GifImage(java.lang.String fileName,
int imageNo)
throws ImageError
fileName - name of the multi-frame image fileimageNo - frame number of the image (starts at 0.)
public GifImage(Stream gifStream)
throws ImageError
gifStream - waba.io.Stream that contains the GIF data
public GifImage(Stream gifStream,
int imageNo)
throws ImageError
gifStream - waba.io.Stream that contains the GIF dataimageNo - frame number of the image to be loaded (starts at 0.)| Method Detail |
public void load(Stream gifStream)
throws ImageError
gifStream - waba.io.Stream that contains the GIF data
public void load(Stream gifStream,
int imageNo)
throws ImageError
gifStream - waba.io.Stream that contains the GIF dataimageNo - frame number of the image to be loaded (starts at 0.)
public static Image[] getAllFrames(java.lang.String fileName)
throws ImageError
fileName - name of the multi-frame image file
public static Image[] getAllFrames(Stream gifStream)
throws ImageError
gifStream - waba.io.Stream that contains the GIF datapublic void copyFrom(Image img)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||