I have an image which original size is 125px wide and 150px tall. I am setting this image into the bean for web service purpose. But I wanted to crop the original image to a size of 80px wide and 80px tall before I set it to the bean. I would appreciate if someone can suggest me how if it is possible and how would I able to do that. Thank you very much.
Here is the code how I am setting the Image into the bean:
Do you want to crop or scale? They're not the same thing. How are you acquiring the image, any guarantee it's in a compatible format for the system? That can have a HUGE impact on the performance of things like drawImage.