What is the exact functionality you want to be able to do with the resize?
Do you want the user to dynamically drag the bounds of the image to resize it, or are there predefined sizes the user will be able to click through(more like zoom in/zoom out)? What are the upper and lower bounds of the resizing? Any further information?
Write once, run anywhere, because there's nowhere to hide! - /. A.C.