You should not expect the exact copy to paste in your requirement. You should work on with the ideas given by our members.In place of height and width properties you can change according to you.Regards

I suggested you the DNS link where the same question has been asked previously. You can get and idea where to modify your code in order to make it work as per your requirement.Hope you understood.Sridhar Thota.Editor: DNS Forum.

Hai JayaKumar,yes, you can search in the forum for the same issue and you can find many links as the same question been asked many times.So try with the existing ways and if you are still getting some problem then you can post it.Hope it will be helpful to you.Regards,Pawan Awasthi(DNS MVM)+91 8123489140 (whatsApp), +60 14365 1476(Malaysia)pawansoftit@gmail.com

I'm afraid that its almost impossible to do a resize without losing quality. There are some good algorithms to reduce the effect of the resizing. I used a library called leadtools in my application which had simple (nearest neighbor), Resample (sort of averaging) or Bi-cubic (more accurate results) algorithms. If your application requires basic resizing and the level of detail is not much, you can find free libraries that implement one of these algorithms.

The following links contains more useful information about the subject:http://en.wikipedia.org/wiki/Image_scaling