Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 20, 2012 10:54 AM by shobana raja
Jan 19, 2012 08:27 AM|LINK
How to crop and save a image with aspect ratio 4:3 in asp.net C#
Jan 19, 2012 08:38 AM|LINK
Jan 19, 2012 09:04 AM|LINK
i need the center crop of the image like in the microsoft picture manager.
Jan 19, 2012 09:11 AM|LINK
Check out this article
Jan 19, 2012 09:58 AM|LINK
Do anyone know how to change (any)width and (any)height to standard 4:3 ratio ???????
Jan 19, 2012 10:09 AM|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 10:38 AM|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 12:05 PM|LINK
Jan 19, 2012 12:09 PM|LINK
See this link, it will guide you how you can generate good quality thumbnail and image scaling:-
Jan 20, 2012 04:37 AM|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.