Class ImageMerger
java.lang.Object
eu.europa.esig.dss.pdf.pdfbox.visible.defaultdrawer.ImageMerger
public final class ImageMerger extends Object
This class allows to merge two pictures together
-
Method Summary
Modifier and Type Method Description static BufferedImage
mergeOnRight(BufferedImage left, BufferedImage right, Color bgColor, SignerTextVerticalAlignment imageVerticalAlignment)
Creates a joined image betweenleft
andright
static BufferedImage
mergeOnTop(BufferedImage bottom, BufferedImage top, Color bgColor, SignerTextHorizontalAlignment imageHorizontalAlignment)
Creates a joined image betweenbottom
andtop
-
Method Details
-
mergeOnTop
public static BufferedImage mergeOnTop(BufferedImage bottom, BufferedImage top, Color bgColor, SignerTextHorizontalAlignment imageHorizontalAlignment)Creates a joined image betweenbottom
andtop
- Parameters:
bottom
-BufferedImage
to place in the bottomtop
-BufferedImage
to place in the topbgColor
-Color
the background colorimageHorizontalAlignment
-SignerTextHorizontalAlignment
- Returns:
BufferedImage
-
mergeOnRight
public static BufferedImage mergeOnRight(BufferedImage left, BufferedImage right, Color bgColor, SignerTextVerticalAlignment imageVerticalAlignment)Creates a joined image betweenleft
andright
- Parameters:
left
-BufferedImage
to place in the leftright
-BufferedImage
to place in the rightbgColor
-Color
the background colorimageVerticalAlignment
-SignerTextVerticalAlignment
- Returns:
BufferedImage
-