public class ImageUtilities
extends java.lang.Object
Constructor and Description |
---|
ImageUtilities() |
Modifier and Type | Method and Description |
---|---|
static Image |
createRotatedImage(Image srcImage)
Returns a new Image that is the given Image rotated left by 90 degrees.
|
static Image |
createRotatedImageOfString(java.lang.String string,
Font font,
Color foreground,
Color background)
Returns a new Image with the given String rotated left (by 90 degrees).
|
static ImageData |
createShadedImage(Image fromImage,
Color shade)
Creates an ImageData representing the given
Image shaded
with the given Color . |
public static Image createRotatedImageOfString(java.lang.String string, Font font, Color foreground, Color background)
string
- the String to be renderedfont
- the fontforeground
- the text's colorbackground
- the background colorpublic static Image createRotatedImage(Image srcImage)
srcImage
- the Image that is to be rotated leftpublic static ImageData createShadedImage(Image fromImage, Color shade)
Image
shaded
with the given Color
.fromImage
- Image that has to be shadedshade
- The Color to be used for shadingCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.