| java.lang.Object org.wfp.vam.intermap.kernel.map.images.ImageMerger
ImageMerger | public class ImageMerger (Code) | | |
Field Summary | |
final public static int | GIF | final public static int | JPG | final public static int | PNG |
Method Summary | |
public static BufferedImage | dealpha(BufferedImage bi) You cannot convert to JPEG an image with an alpha channel. | public static BufferedImage | dealpha(BufferedImage bi, Color background) You cannot convert to JPEG an image with an alpha channel. | public static synchronized void | encodeGIF(OutputStream os, BufferedImage bi) | public static synchronized void | encodeJPG(OutputStream os, BufferedImage bi) | public static synchronized void | encodeJPG(OutputStream os, BufferedImage bi, float quality) | public static synchronized void | encodePNG(OutputStream os, BufferedImage bi) | public static void | main(String args) | public static BufferedImage | merge(List images, List<Float> transparency) Merges the image listed in images, each with the related transparency. | public static BufferedImage | merge(String base, String over, int x, int y) | public static BufferedImage | merge(String base, Image over, int x, int y) | public static BufferedImage | merge(String base, Image over, int x, int y, float alpha) | public static BufferedImage | merge(Image base, Image over, int x, int y) | public static BufferedImage | merge(Image base, Image over, int x, int y, float alpha) | public static void | mergeAndSave(List images, List<Float> transparency, String outputFile, int format) Merge several images into one. | public static void | saveImage(BufferedImage bi, String outputFile, int format) |
GIF | final public static int GIF(Code) | | |
JPG | final public static int JPG(Code) | | |
PNG | final public static int PNG(Code) | | |
merge | public static BufferedImage merge(List images, List<Float> transparency)(Code) | | Merges the image listed in images, each with the related transparency.
images items can be Images or String (representing the file path of the image).
Images and Strings can also be mixed in the List.
the higher in the image stack it will be printed.
|
mergeAndSave | public static void mergeAndSave(List images, List<Float> transparency, String outputFile, int format)(Code) | | Merge several images into one. The first file supplied will be put at top.
The destination image has the same size as the first input file.
Parameters: images - is a List of Images or Strings denoting the full path of the input image Parameters: outputFile - is a String denoting path+filename of the output image Parameters: format - is JPG or PNG as defined in the public constants. |
|
|