|
||||||||||
| 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 ImageIcon |
createBlueImage(ImageIcon image)
Creates a blue version of the image supplied. |
static ImageIcon |
createBrighterImage(ImageIcon image)
Creates a 30% brighter version of the image supplied. |
static ImageIcon |
createCyanImage(ImageIcon image)
Creates a cyan version of the image supplied. |
static ImageIcon |
createDarkerImage(ImageIcon image)
Creates a 30% darker version of the image supplied. |
static ImageIcon |
createGrayImage(ImageIcon image)
Creates a gray version of the image supplied. |
static ImageIcon |
createGreenImage(ImageIcon image)
Creates a green version of the image supplied. |
static ImageIcon |
createMagentaImage(ImageIcon image)
Creates a magenta version of the image supplied. |
static ImageIcon |
createRedImage(ImageIcon image)
Creates a red version of the image supplied. |
static ImageIcon |
createSilhouetteImage(ImageIcon image,
Color color)
Creates a silhouette version of the image supplied, in the supplied color. |
static ImageIcon |
createYellowImage(ImageIcon image)
Creates a yellow version of the image supplied. |
static ImageIcon |
filter(ImageIcon image,
RGBImageFilter filter)
Utility method that filters the image. |
static Image |
iconToImage(Icon icon)
Converts an Icon to an Image. |
static Icon |
resize(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 ImageIcon createDarkerImage(ImageIcon image)
image - the image to be darkened.
public static ImageIcon createBrighterImage(ImageIcon image)
image - the image to be brightened.
public static ImageIcon createGrayImage(ImageIcon image)
image - the image to be filtered.
public static ImageIcon createRedImage(ImageIcon image)
image - the image to be filtered.
public static ImageIcon createGreenImage(ImageIcon image)
image - the image to be filtered.
public static ImageIcon createBlueImage(ImageIcon image)
image - the image to be filtered.
public static ImageIcon createCyanImage(ImageIcon image)
image - the image to be filtered.
public static ImageIcon createMagentaImage(ImageIcon image)
image - the image to be filtered.
public static ImageIcon createYellowImage(ImageIcon image)
image - the image to be filtered.
public static ImageIcon createSilhouetteImage(ImageIcon image,
Color color)
image - the image to be filtered.color - the color of the filtered image.
public static ImageIcon filter(ImageIcon image,
RGBImageFilter filter)
image - the image to be filtered.filter - the filter to be used.
public static Image iconToImage(Icon icon)
icon - the icon to convert.
public static Icon resize(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 | |||||||||