All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.eou.toolkit.graphics.ImageUtils
java.lang.Object
|
+----com.ibm.eou.toolkit.graphics.ImageUtils
- public class ImageUtils
- extends Object
This class provides Image oriented utility functions.
-
combine(Image, Image, int, int)
- Generate an Image which whows the results of drawing over on
under at the point (x, y).
-
copyright()
- Copyright method to ensure that short copyright string appears
in class file.
-
createImage(Image)
- Return an Image which is a copy of the supplied Image.
-
createImage(int, int, Toolkit, int[])
- Return an image based on the given pixel map.
-
createImage(int, int, Toolkit, int[], boolean)
- Return an image based on the given pixel map.
-
getColorArray(Image)
- Return an array of Colors which are used in the supplied Image.
-
getColorTable(Image)
- Return a hashtable of Colors which are used in the supplied Image.
-
getImageFromJar(String, Class)
- Return an Image created from a file of the supplied image source name
to be found in the Jar file containing the supplied class.
-
getImageFromJar(String, Class, Component)
- Return an Image created from a file of the supplied image source name
to be found in the Jar file containing the supplied class.
-
getIntArray(Image)
- Return an array of ints represnting the pixels from the supplied Image.
-
waitForImage(Image)
- Wait for the specified image to be fully loaded.
-
waitForImages(Image[])
- Waits for the array of specified images to be fully loaded.
copyright
public static String copyright()
- Copyright method to ensure that short copyright string appears
in class file.
combine
public static Image combine(Image under,
Image over,
int x,
int y)
- Generate an Image which whows the results of drawing over on
under at the point (x, y). Returns null if the Image cannot be created.
The Image will not be created if over is not contained withtin under.
createImage
public static Image createImage(int width,
int height,
Toolkit t,
int pixels[],
boolean hasAlphaPixels)
- Return an image based on the given pixel map.
The alpha values (bits 24-31) must be non zero for a visible image.
createImage
public static Image createImage(int width,
int height,
Toolkit t,
int pixels[])
- Return an image based on the given pixel map.
The alpha values (bits 24-31) must be non zero for a visible image.
createImage
public static Image createImage(Image sourceImage)
- Return an Image which is a copy of the supplied Image.
getImageFromJar
public static Image getImageFromJar(String imageSource,
Class resourceClass,
Component component)
- Return an Image created from a file of the supplied image source name
to be found in the Jar file containing the supplied class.
If the image is not found in the Jar file, the supplied Component
is used to try to locate a parent Applet, and then use that Applet
to load the named image.
getImageFromJar
public static Image getImageFromJar(String imageSource,
Class resourceClass)
- Return an Image created from a file of the supplied image source name
to be found in the Jar file containing the supplied class.
getColorArray
public static Color[] getColorArray(Image sourceImage)
- Return an array of Colors which are used in the supplied Image.
getColorTable
public static Hashtable getColorTable(Image sourceImage)
- Return a hashtable of Colors which are used in the supplied Image.
The Colors are keys to Integers containing their sequence number.
getIntArray
public static int[] getIntArray(Image image)
- Return an array of ints represnting the pixels from the supplied Image.
waitForImage
public static void waitForImage(Image image)
- Wait for the specified image to be fully loaded.
waitForImages
public static void waitForImages(Image images[])
- Waits for the array of specified images to be fully loaded.
All Packages Class Hierarchy This Package Previous Next Index