Resizing/Saving an Image

Hey all,

I'm trying to write a program that reduces the size of an image by a predetermined factor. My program has to load an image file into a PImage, construct a new PImage, eight times smaller in every dimension, with the scaled content, and save that new PImage to disk.

Saving an image with save() works but i'm struggling to simultaneously rescale as well. Is it possible to use resize() with save() to achieve this? Or is there perhaps a more efficient way of going about doing this?

Any help would be greatly appreciated! Thanks

Tagged:

Answers

Sign In or Register to comment.