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
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...
shobana raja
Member
122 Points
228 Posts
Image Crop using aspect ratio
Jan 19, 2012 08:27 AM|LINK
How to crop and save a image with aspect ratio 4:3 in asp.net C#
mudassarkhan
All-Star
78956 Points
13402 Posts
MVP
Re: Image Crop using aspect ratio
Jan 19, 2012 08:38 AM|LINK
Refer these
http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-cropping-and-resizing
http://stackoverflow.com/questions/4648456/save-image-to-file-keeping-aspect-ratio-in-a-wpf-app
Contact me
shobana raja
Member
122 Points
228 Posts
Re: Image Crop using aspect ratio
Jan 19, 2012 09:04 AM|LINK
i need the center crop of the image like in the microsoft picture manager.
virazv
Member
75 Points
24 Posts
Re: Image Crop using aspect ratio
Jan 19, 2012 09:11 AM|LINK
Check out this article
http://weblogs.asp.net/gunnarpeipman/archive/2009/11/03/using-asp-net-and-jcrop-to-crop-images-online.aspx
shobana raja
Member
122 Points
228 Posts
Re: Image Crop using aspect ratio
Jan 19, 2012 09:58 AM|LINK
Do anyone know how to change (any)width and (any)height to standard 4:3 ratio ???????
Arunmhn
Participant
1876 Points
347 Posts
Re: Image Crop using aspect ratio
Jan 19, 2012 10:09 AM|LINK
Hi,
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 http://en.wikipedia.org/wiki/Display_resolution
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...
Thanks
Arun
shobana raja
Member
122 Points
228 Posts
Re: Image Crop using aspect ratio
Jan 19, 2012 10:38 AM|LINK
eprovidere
Member
300 Points
75 Posts
Re: Image Crop using aspect ratio
Jan 19, 2012 12:05 PM|LINK
http://www.dotnetthoughts.net/2009/12/07/image-cropping-in-asp-net-with-jquery/
http://geekswithblogs.net/SanjayU/articles/asp.net-image--photo-cropper-in-c.aspx
sirdneo
All-Star
15171 Points
2509 Posts
Re: Image Crop using aspect ratio
Jan 19, 2012 12:09 PM|LINK
See this link, it will guide you how you can generate good quality thumbnail and image scaling:-
http://zeeshanumardotnet.blogspot.com/2010/06/generate-high-quality-thumbnail-images.html
Zeeshan Umar
~Please Mark As Answer, one or multiple posts, which helped you. So that it might be useful for others~
shobana raja
Member
122 Points
228 Posts
Re: Image Crop using aspect ratio
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.