Merge Image to BMP in Java
High-speed and cross-platform Java library for merging Image to BMP files using Java code
Merge Image to BMP using Aspose.Slides
Aspose.Slides for Java is a powerful Java library used to create, convert, merge, and manipulate presentations, PDFs, images, and other files. When you merge image to BMP, you are effectively combining images to obtain a single BMP file.
Merge Image to BMP in Java
Using Aspose.Slides for Java , you can merge image to BMP quickly with just a few lines of code
Java code for merging Image to BMP
Presentation pres = new Presentation();
try {
IPPImage image1 = pres.getImages().addImage(Files.readAllBytes("image1.png"));
pres.getSlides().get_Item(0).getShapes().addPictureFrame(ShapeType.Rectangle, 0, 0, 100, 100, image1);
IPPImage image2 = pres.getImages().addImage(Files.readAllBytes("image2.png"));
pres.getSlides().get_Item(0).getShapes().addPictureFrame(ShapeType.Rectangle, 0, 200, 100, 100, image2);
for (int index = 0; index < pres.getSlides().size(); index++)
{
ISlide slide = pres.getSlides().get_Item(index);
BufferedImage bufferedImage = slide.getThumbnail();
ImageIO.write(bufferedImage, "BMP", new File("image_java_" + index + ".bmp"));
}
} finally {
if (pres != null) pres.dispose();
}
How to merge Image to BMP in Java
Install Aspose.Slides for Java. See Installation .
Add the library as a reference in your project.
Create an instance of the Presentation class.
Load the images you want to merge together as picture frames.
Save the resulting BMP file.
Merge PDF Files Online
Merge other files
You can also combine files in other formats to get a single file