Java Utililty Methods BufferedImage Merge

List of utility methods to do BufferedImage Merge

Description

The list of methods to do BufferedImage Merge are organized into topic(s).

Method

BufferedImagemergeImage(BufferedImage a, BufferedImage b)
merge Image
BufferedImage img = new BufferedImage(800, 600, 1);
Dimension dim = new Dimension(img.getWidth(), img.getHeight());
Graphics g = img.getGraphics();
for (int r = 0; r < dim.width; r++) {
    for (int c = 0; c < dim.height; c++) {
        Color ac = new Color(a.getRGB(r, c));
        Color bc = new Color(b.getRGB(r, c));
        g.setColor(new Color((ac.getRed() + bc.getRed()) / 2, (ac.getGreen() + bc.getGreen()) / 2,
...
BufferedImagemergeImage(BufferedImage origImage, Vector fadedImages)
merge Image
int ht = origImage.getHeight(), wd = origImage.getWidth();
BufferedImage fadeImg = new BufferedImage(wd, ht, COLORTYPE), clipFadeImg = null;
Graphics g = fadeImg.createGraphics();
for (int i = 0; i < fadedImages.size(); i++) {
    clipFadeImg = fadedImages.elementAt(i);
    g.drawImage(clipFadeImg, 0, 0, wd, ht, null);
g.dispose();
...
ImagemergeImages(List images, int space, Color bg)
Merge images
return gridImages(images, space, bg, 1);