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.


Method Index

 o combine(Image, Image, int, int)
Generate an Image which whows the results of drawing over on under at the point (x, y).
 o copyright()
Copyright method to ensure that short copyright string appears in class file.
 o createImage(Image)
Return an Image which is a copy of the supplied Image.
 o createImage(int, int, Toolkit, int[])
Return an image based on the given pixel map.
 o createImage(int, int, Toolkit, int[], boolean)
Return an image based on the given pixel map.
 o getColorArray(Image)
Return an array of Colors which are used in the supplied Image.
 o getColorTable(Image)
Return a hashtable of Colors which are used in the supplied Image.
 o 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.
 o 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.
 o getIntArray(Image)
Return an array of ints represnting the pixels from the supplied Image.
 o waitForImage(Image)
Wait for the specified image to be fully loaded.
 o waitForImages(Image[])
Waits for the array of specified images to be fully loaded.

Methods

 o copyright
 public static String copyright()
Copyright method to ensure that short copyright string appears in class file.

 o 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.

 o 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.

 o 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.

 o createImage
 public static Image createImage(Image sourceImage)
Return an Image which is a copy of the supplied Image.

 o 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.

 o 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.

 o getColorArray
 public static Color[] getColorArray(Image sourceImage)
Return an array of Colors which are used in the supplied Image.

 o 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.

 o getIntArray
 public static int[] getIntArray(Image image)
Return an array of ints represnting the pixels from the supplied Image.

 o waitForImage
 public static void waitForImage(Image image)
Wait for the specified image to be fully loaded.

 o 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