|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hyperic.image.ImageUtil
public class ImageUtil
| Constructor Summary | |
|---|---|
ImageUtil()
|
|
| Method Summary | |
|---|---|
static java.awt.image.BufferedImage |
convertToIndexColorImage(java.awt.image.BufferedImage image)
Creates a copy of an image and during the process converts the image to an indexed color image. |
static java.awt.image.BufferedImage |
loadImage(java.lang.String path)
Loads an image from a file on disk or in an archive (e.g., .jar). |
static byte[][] |
scrapeColors(java.awt.image.BufferedImage image)
Get's all of the unique colors in an image. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageUtil()
| Method Detail |
|---|
public static java.awt.image.BufferedImage convertToIndexColorImage(java.awt.image.BufferedImage image)
image - Image to convert.
public static java.awt.image.BufferedImage loadImage(java.lang.String path)
throws java.io.IOException
path - The name of the image file to load. This should be a relative
path starting from anywhere in the classpath. For example,
'images/foo.gif'.
java.io.IOExceptionpublic static byte[][] scrapeColors(java.awt.image.BufferedImage image)
image - The image.
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||