jcontrol.toolkit
Class ImageUtils
java.lang.Object
jcontrol.toolkit.ImageUtils
- public class ImageUtils
- extends java.lang.Object
This class provides image property methods.
(C) DOMOLOGIC Home Automation GmbH 2003
- Version:
- 1.0
- Author:
- Marcus Timmermann
- Available on JControl Devices:
lib (Sticker, PLUI, SmartDisplay) |
Method Summary |
static int |
getHeight(jcontrol.io.Resource image)
Calculates an image's height. |
static int |
getWidth(jcontrol.io.Resource image)
Calculates an image's width. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, notifyAll, wait |
ImageUtils
public ImageUtils()
getHeight
public static int getHeight(jcontrol.io.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
getWidth
public static int getWidth(jcontrol.io.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