public final class ImageUtil extends Object
| Constructor and Description |
|---|
ImageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Image |
adjustScale(BufferedImage bi,
int targetW,
int targetH,
int insetX,
int insetY)
DOCUMENT ME!
|
static Image |
adjustScale(BufferedImage bi,
JComponent component,
int insetX,
int insetY)
DOCUMENT ME!
|
static BufferedImage |
generateShadow(Image in,
int shadowPixel)
DOCUMENT ME!
|
static Image |
loadImageAccordingToExifOrientation(File imageFile)
Loads the given image file and change the rotation mirroring according to the exif information.
|
static Image |
resizeOnScale(Image origImage,
int maxWidth,
int maxHeight)
DOCUMENT ME!
|
static BufferedImage |
rotateImage(BufferedImage src,
double degrees)
DOCUMENT ME!
|
static BufferedImage |
toBufferedImage(Image image)
Converts the given Image object to a BufferedImage object.
|
static BufferedImage |
toHorizontallyMirroredImage(BufferedImage image)
Creates a horizontally mirrored image of the given image.
|
static BufferedImage |
toVerticallyMirroredImage(BufferedImage image)
Creates a vertically mirrored image of the given image.
|
public static Image adjustScale(BufferedImage bi, JComponent component, int insetX, int insetY)
bi - DOCUMENT ME!component - DOCUMENT ME!insetX - DOCUMENT ME!insetY - DOCUMENT ME!public static Image adjustScale(BufferedImage bi, int targetW, int targetH, int insetX, int insetY)
bi - DOCUMENT ME!targetW - DOCUMENT ME!targetH - DOCUMENT ME!insetX - DOCUMENT ME!insetY - DOCUMENT ME!public static Image resizeOnScale(Image origImage, int maxWidth, int maxHeight)
origImage - DOCUMENT ME!maxWidth - DOCUMENT ME!maxHeight - DOCUMENT ME!public static BufferedImage generateShadow(Image in, int shadowPixel)
in - DOCUMENT ME!shadowPixel - DOCUMENT ME!public static BufferedImage rotateImage(BufferedImage src, double degrees)
src - DOCUMENT ME!degrees - DOCUMENT ME!public static BufferedImage toBufferedImage(Image image)
image - then image objectpublic static BufferedImage toHorizontallyMirroredImage(BufferedImage image)
image - the image to mirrorpublic static BufferedImage toVerticallyMirroredImage(BufferedImage image)
image - the image to mirrorCopyright © 2012–2026 cismet GmbH. All rights reserved.