|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bounce.image.ImageUtilities
public class ImageUtilities
A class with utility methods for the images.
| Constructor Summary | |
|---|---|
ImageUtilities()
|
|
| Method Summary | |
|---|---|
static javax.swing.ImageIcon |
createBlueImage(javax.swing.ImageIcon image)
Creates a blue version of the image supplied. |
static javax.swing.ImageIcon |
createBrighterImage(javax.swing.ImageIcon image)
Creates a 30% brighter version of the image supplied. |
static javax.swing.ImageIcon |
createCyanImage(javax.swing.ImageIcon image)
Creates a cyan version of the image supplied. |
static javax.swing.ImageIcon |
createDarkerImage(javax.swing.ImageIcon image)
Creates a 30% darker version of the image supplied. |
static javax.swing.ImageIcon |
createGrayImage(javax.swing.ImageIcon image)
Creates a gray version of the image supplied. |
static javax.swing.ImageIcon |
createGreenImage(javax.swing.ImageIcon image)
Creates a green version of the image supplied. |
static javax.swing.ImageIcon |
createMagentaImage(javax.swing.ImageIcon image)
Creates a magenta version of the image supplied. |
static javax.swing.ImageIcon |
createRedImage(javax.swing.ImageIcon image)
Creates a red version of the image supplied. |
static javax.swing.ImageIcon |
createSilhouetteImage(javax.swing.ImageIcon image,
java.awt.Color color)
Creates a silhouette version of the image supplied, in the supplied color. |
static javax.swing.ImageIcon |
createYellowImage(javax.swing.ImageIcon image)
Creates a yellow version of the image supplied. |
static javax.swing.ImageIcon |
filter(javax.swing.ImageIcon image,
java.awt.image.RGBImageFilter filter)
Utility method that filters the image. |
static java.awt.Image |
iconToImage(javax.swing.Icon icon)
Converts an Icon to an Image. |
static javax.swing.Icon |
resize(javax.swing.Icon icon,
int width,
int height)
Resizes an icon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageUtilities()
| Method Detail |
|---|
public static javax.swing.ImageIcon createDarkerImage(javax.swing.ImageIcon image)
image - the image to be darkened.
public static javax.swing.ImageIcon createBrighterImage(javax.swing.ImageIcon image)
image - the image to be brightened.
public static javax.swing.ImageIcon createGrayImage(javax.swing.ImageIcon image)
image - the image to be filtered.
public static javax.swing.ImageIcon createRedImage(javax.swing.ImageIcon image)
image - the image to be filtered.
public static javax.swing.ImageIcon createGreenImage(javax.swing.ImageIcon image)
image - the image to be filtered.
public static javax.swing.ImageIcon createBlueImage(javax.swing.ImageIcon image)
image - the image to be filtered.
public static javax.swing.ImageIcon createCyanImage(javax.swing.ImageIcon image)
image - the image to be filtered.
public static javax.swing.ImageIcon createMagentaImage(javax.swing.ImageIcon image)
image - the image to be filtered.
public static javax.swing.ImageIcon createYellowImage(javax.swing.ImageIcon image)
image - the image to be filtered.
public static javax.swing.ImageIcon createSilhouetteImage(javax.swing.ImageIcon image,
java.awt.Color color)
image - the image to be filtered.color - the color of the filtered image.
public static javax.swing.ImageIcon filter(javax.swing.ImageIcon image,
java.awt.image.RGBImageFilter filter)
image - the image to be filtered.filter - the filter to be used.
public static java.awt.Image iconToImage(javax.swing.Icon icon)
icon - the icon to convert.
public static javax.swing.Icon resize(javax.swing.Icon icon,
int width,
int height)
icon - the icon to resize.width - the width of the icon or 0 or smaller when the width should be
relative to the size of the icon and the provided height. Not
both height and width can be smaller than 0.height - the height of the icon or 0 or smaller when the height should
be relative to the size of the icon and the provided width.
Not both height and width can be smaller than 0.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||