Last post Jan 20, 2012 06:54 AM by shobana raja
Jan 19, 2012 04:27 AM|shobana raja|LINK
How to crop and save a image with aspect ratio 4:3 in asp.net C#
Jan 19, 2012 04:38 AM|mudassarkhan|LINK
Jan 19, 2012 05:04 AM|shobana raja|LINK
i need the center crop of the image like in the microsoft picture manager.
Jan 19, 2012 05:11 AM|virazv|LINK
Check out this article
Jan 19, 2012 05:58 AM|shobana raja|LINK
Do anyone know how to change (any)width and (any)height to standard 4:3 ratio ???????
Jan 19, 2012 06:09 AM|Arunmhn|LINK
There are lots of programs with which you can actually resize/crop an image in C#, the earlier posts can help you with this, coming to the aspect ratio part 4:3 is nothing but standard 1024 X 768 pixels... So in your program you can always set the width
to 1024 and height to 768
Here is the link for all aspect ratios
And remember aspect ratios are calculated by find the greatest common divisor of the resolution.. in this case the 256 is the greatest common divisor of 1024 and 768
256 * 4 is 1024 and 156 * 3 is 768.... So you can very well go ahead and use the above programs to get to the 4:3 ratio...
Jan 19, 2012 06:38 AM|shobana raja|LINK
Double aspectRatio = 4.0 / 3.0; int newHeight = (int)((imge.Height) * aspectRatio); int newWidth = (int)((imge.Width) * aspectRatio); int cropY = (int)((imge.Height) / 2.0 - newHeight / 2.0); int cropX = (int)((imge.Width) / 2.0 - newWidth / 2.0);
i have done like this but this is not converting to standard ratio 4:3 and even x and y is not
helping to crop image at the center. Can any one pls help.???
Jan 19, 2012 08:05 AM|eprovidere|LINK
Jan 19, 2012 08:09 AM|sirdneo|LINK
See this link, it will guide you how you can generate good quality thumbnail and image scaling:-
Jan 20, 2012 12:37 AM|shobana raja|LINK
I need a method to crop using aspect ratio like microsoft picture manager. I need the method to convert original image with new height and new width.
Jan 20, 2012 04:16 AM|sirdneo|LINK
have you tried the code which I shared, i am able to generate good quality thumbnails with that code.
Jan 20, 2012 04:38 AM|shobana raja|LINK
An error while saving the thumbnail image
"A generic error occurred in GDI+."
Jan 20, 2012 05:27 AM|virazv|LINK
Check out this thread http://forums.asp.net/t/1395596.aspx/1
Jan 20, 2012 06:54 AM|shobana raja|LINK
Thanks alot it worked