|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.swing.ImageMixer
Helper class to create images and icons consisting of other images and icons.
Field Summary | |
private static byte[] |
emptypic
|
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
private |
ImageMixer()
Uninstanciable as all methods are static. |
Method Summary | |
static java.awt.image.BufferedImage |
combineBufferedImages(java.awt.image.BufferedImage[] images)
Combine images in horizontal direction, vertically centered with no gap |
static java.awt.image.BufferedImage |
combineBufferedImages(java.awt.image.BufferedImage[] images,
int gap)
Combine images in horizontal direction, vertically centered |
static java.awt.image.BufferedImage |
combineBufferedImages(java.awt.image.BufferedImage[] images,
int orientation,
int alignment,
int gap)
Combine two or more BufferedImages into one. |
static java.awt.Image |
getEmptyImage(int width,
int height)
Returns an empty, transparent image of the given size. |
static byte[] |
getOnePixelTransparentPNGImageData()
Returns a one-to-one-pixel transparent PNG file as byte array. |
static java.awt.image.BufferedImage |
overlayBufferedImages(java.awt.image.BufferedImage[] images,
int xalign,
int yalign)
Overlays two or more BufferedImages into one. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final byte[] emptypic
Constructor Detail |
private ImageMixer()
Method Detail |
public static byte[] getOnePixelTransparentPNGImageData()
public static java.awt.Image getEmptyImage(int width, int height)
width
- Width of the image to be createdheight
- Height of the empty image to be created
public static java.awt.image.BufferedImage combineBufferedImages(java.awt.image.BufferedImage[] images, int orientation, int alignment, int gap)
images
- The input images.orientation
- HORIZONTAL or VERTICALalignment
- TOP/CENTER/BOTTOM or LEFT/CENTER/RIGHTgap
- Gap between the pictures in pixel
public static java.awt.image.BufferedImage overlayBufferedImages(java.awt.image.BufferedImage[] images, int xalign, int yalign)
images
- The input images.xalign
- LEFT/CENTER/RIGHTyalign
- TOP/CENTER/BOTTOM
public static java.awt.image.BufferedImage combineBufferedImages(java.awt.image.BufferedImage[] images, int gap)
public static java.awt.image.BufferedImage combineBufferedImages(java.awt.image.BufferedImage[] images)
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |