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 BufferedImagemergeOnRight(BufferedImage left, BufferedImage right, Color bgColor, SignerTextVerticalAlignment imageVerticalAlignment)Creates a joined image betweenleftandrightstatic BufferedImagemergeOnTop(BufferedImage bottom, BufferedImage top, Color bgColor, SignerTextHorizontalAlignment imageHorizontalAlignment)Creates a joined image betweenbottomandtop
-
Method Details
-
mergeOnTop
public static BufferedImage mergeOnTop(BufferedImage bottom, BufferedImage top, Color bgColor, SignerTextHorizontalAlignment imageHorizontalAlignment)Creates a joined image betweenbottomandtop- Parameters:
bottom-BufferedImageto place in the bottomtop-BufferedImageto place in the topbgColor-Colorthe background colorimageHorizontalAlignment-SignerTextHorizontalAlignment- Returns:
BufferedImage
-
mergeOnRight
public static BufferedImage mergeOnRight(BufferedImage left, BufferedImage right, Color bgColor, SignerTextVerticalAlignment imageVerticalAlignment)Creates a joined image betweenleftandright- Parameters:
left-BufferedImageto place in the leftright-BufferedImageto place in the rightbgColor-Colorthe background colorimageVerticalAlignment-SignerTextVerticalAlignment- Returns:
BufferedImage
-