This is a discussion on DPI of an Image within the C# Programming forums, part of the Software Development category; DPI of an Image How to get the Image Resolution...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| yes ...you can get the Image Resolution by Bitmap origImage=img float resolution=origImage.HorizontalResolution; |
| |||
| thanks..but i found one issue here .... While getting the "HorizontalResolution" its says 96 DPI..but if i opened the same image in photoshop it says 72 DPI...how can i fix
__________________ The MOSS Master of Solution Service |
| |||
| oh...but i didnt check with the Photoshop...i wil check |
| |||
| Can you try using Graphics g = e.Graphics; Bitmap bmp = new Bitmap("winter.jpg"); g.DrawImage(bmp, 0, 0); resolution= g.DpiX this will help |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert image to other image format using CODEC in .NET 3.0 | Mramesh | C# Programming | 0 | 02-07-2008 03:33 AM |
| How to create an image from panel background Image | S.Vinothkumar | C# Programming | 1 | 10-22-2007 03:52 AM |
| Example of Image Upload | hanusoft | ASP and ASP.NET Programming | 2 | 09-20-2007 10:59 PM |
| How do I preload an image? | Pvinothkumar | HTML, CSS and Javascript Coding Techniques | 2 | 09-18-2007 10:25 PM |
| Image downloading | Sivamurugan | PHP Programming | 2 | 07-16-2007 03:30 AM |