// For complete examples and data files, please go to https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java
String sourcePath = Utilities.sourcePath + sourceFile;
//stream
ArrayList<ByteArrayOutputStream> imageStream = new ArrayList<ByteArrayOutputStream>();
//Open document
ComparisonPresentationBase presentation = new ComparisonPresentation(sourcePath);
//Set settings
ComparisonSlidesImageSettings settings = new ComparisonSlidesImageSettings();
//Save as Image
presentation.saveAsImages(imageStream, settings);