Hi,
I have a requirement to convert big size images from one format to other.
Using normal image save it give Out Of Memory exception so i tried using below code. But its still not working.
Can you please help me out and also what format does below code supports?
final RasterImage image = (RasterImage) RasterImage.load("./inputimages/input.png");
image.loadPartialPixels(image.getBounds() , new IPartialPixelLoader() {
@Override
public void process(Rectangle arg0, Color[] arg1, Point arg2, Point arg3) {
// TODO Auto-generated method stub
image.savePixels(arg0, arg1);
image.save("./outputimages/output1.jpg", new JpegOptions());
}
});
Thanks,
Amit