jcontrol.toolkit
Class ImageUtils

java.lang.Object
  extended by jcontrol.toolkit.ImageUtils

public class ImageUtils
extends Object

This class provides image property methods.

(C) DOMOLOGIC Home Automation GmbH 2003


Constructor Summary
ImageUtils()
           
 
Method Summary
static int getHeight(Resource image)
          Calculates an image's height.
static int getWidth(Resource image)
          Calculates an image's width.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, notifyAll, toString, wait
 

Constructor Detail

ImageUtils

public ImageUtils()
Method Detail

getWidth

public static int getWidth(Resource image)
Calculates an image's width.

Parameters:
image - the image resource
Returns:
int the width of the image, or null if the resource contained no image

getHeight

public static int getHeight(Resource image)
Calculates an image's height.

Parameters:
image - the image resource
Returns:
int the width of the image, or null if the resource contained no image