Image Crop using aspect ratiohttp://forums.asp.net/t/1760580.aspx/1?Image+Crop+using+aspect+ratioFri, 20 Jan 2012 10:54:37 -050017605804791387http://forums.asp.net/p/1760580/4791387.aspx/1?Image+Crop+using+aspect+ratioImage Crop using aspect ratio <p>How to crop and save a image with aspect ratio 4:3 in asp.net C#&nbsp;</p> 2012-01-19T08:27:28-05:004791427http://forums.asp.net/p/1760580/4791427.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>Refer these</p> <p><a href="http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-cropping-and-resizing">http://www.switchonthecode.com/tutorials/csharp-tutorial-image-editing-saving-cropping-and-resizing</a></p> <p><a href="http://stackoverflow.com/questions/4648456/save-image-to-file-keeping-aspect-ratio-in-a-wpf-app">http://stackoverflow.com/questions/4648456/save-image-to-file-keeping-aspect-ratio-in-a-wpf-app</a></p> <p>&nbsp;</p> <p>&nbsp;</p> 2012-01-19T08:38:40-05:004791476http://forums.asp.net/p/1760580/4791476.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>i need the center crop of the image like in the microsoft picture manager.</p> 2012-01-19T09:04:39-05:004791491http://forums.asp.net/p/1760580/4791491.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>Check out this article</p> <p></p> <p><a href="http://weblogs.asp.net/gunnarpeipman/archive/2009/11/03/using-asp-net-and-jcrop-to-crop-images-online.aspx">http://weblogs.asp.net/gunnarpeipman/archive/2009/11/03/using-asp-net-and-jcrop-to-crop-images-online.aspx</a></p> 2012-01-19T09:11:37-05:004791593http://forums.asp.net/p/1760580/4791593.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>Do anyone know how to change (any)width and (any)height to standard 4:3 ratio ???????</p> 2012-01-19T09:58:54-05:004791611http://forums.asp.net/p/1760580/4791611.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>Hi,</p> <p>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</p> <p>Here is the link for all aspect ratios <a href="http://en.wikipedia.org/wiki/Display_resolution"> http://en.wikipedia.org/wiki/Display_resolution</a></p> <p>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</p> <p>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...</p> <p>Thanks</p> <p>Arun</p> 2012-01-19T10:09:22-05:004791652http://forums.asp.net/p/1760580/4791652.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <pre> Hi,</pre> <pre> Double aspectRatio = 4.0 / 3.0;<br> int newHeight = (int)((imge.Height) * aspectRatio);<br> int newWidth = (int)((imge.Width) * aspectRatio);<br> int cropY = (int)((imge.Height) / 2.0 - newHeight / 2.0);<br> int cropX = (int)((imge.Width) / 2.0 - newWidth / 2.0);</pre> <pre></pre> <pre> i have done like this but this is not converting to standard ratio 4:3 and even x and y is not&nbsp;</pre> <pre> helping to crop image at the center. Can any one pls help.???</pre> 2012-01-19T10:38:41-05:004791814http://forums.asp.net/p/1760580/4791814.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>http://www.dotnetthoughts.net/2009/12/07/image-cropping-in-asp-net-with-jquery/</p> <p>http://geekswithblogs.net/SanjayU/articles/asp.net-image--photo-cropper-in-c.aspx</p> 2012-01-19T12:05:02-05:004791822http://forums.asp.net/p/1760580/4791822.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>See this link, it will guide you how you can generate good quality thumbnail and image scaling:-</p> <p><a href="http://zeeshanumardotnet.blogspot.com/2010/06/generate-high-quality-thumbnail-images.html"><br> </a></p> <p><a href="http://zeeshanumardotnet.blogspot.com/2010/06/generate-high-quality-thumbnail-images.html">http://zeeshanumardotnet.blogspot.com/2010/06/generate-high-quality-thumbnail-images.html</a></p> 2012-01-19T12:09:28-05:004792841http://forums.asp.net/p/1760580/4792841.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>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.</p> 2012-01-20T04:37:43-05:004793176http://forums.asp.net/p/1760580/4793176.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>have you tried the code which I shared, i am able to generate good quality thumbnails with that code.</p> 2012-01-20T08:16:31-05:004793208http://forums.asp.net/p/1760580/4793208.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>An error while saving the thumbnail image&nbsp;</p> <p>&quot;A generic error occurred in GDI&#43;.&quot;</p> 2012-01-20T08:38:27-05:004793304http://forums.asp.net/p/1760580/4793304.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>Check out this thread&nbsp;<a href="../../../../t/1395596.aspx/1">http://forums.asp.net/t/1395596.aspx/1</a></p> 2012-01-20T09:27:35-05:004793473http://forums.asp.net/p/1760580/4793473.aspx/1?Re+Image+Crop+using+aspect+ratioRe: Image Crop using aspect ratio <p>Thanks alot it worked</p> 2012-01-20T10:54:37-05:00