Thumbnail resizing and cropping RRS feed

  • Question

  • User936012285 posted

    Hi ,

    I am using Graphics object to resize and crop an image and then finally save it to the disk.

    I am either able to resize or crop but not both.

    May be I am not passing the parameters to the graphics object correctly.

    Just to add that my original image is of size 50 * 50.

    I would first need to increase the size to  100 * 100 and then crop it to fit in 75 * 75 size.

    (the requirement is not to scale it to 75 * 75 directly.

    but to first resize to 100 * 100 and then crop it to 75 * 75 and then saving it.)

    I think I am not using the Graphic object and Image object in the right way , passing it dimensions in wrong locations and hence it is either cropping or resizing but not doing both. Please help.

    Saturday, March 26, 2011 6:39 PM


All replies