How do I measure an image size millimeters using VB.Net 2005

Posted on 2009-02-18
Last Modified: 2013-11-26
Hi, I need to get the size of an image in millimeters.  Currently I can only get the height and width in pixels. How do I get the height and width in millimeters???
Please see code below
Dim bmpCropped As New Bitmap(filename)

Image_Width = bmpCropped.Width

Image_Height = bmpCropped.Height

Open in new window

Question by:Ornico4807
    LVL 27

    Expert Comment


    Author Comment

    Hi nmarun
    That solution anly returns the image size in pixels. Any other idea's to get the size in centimeter/milimeter?
    LVL 27

    Expert Comment


    Read all the way and you'll get to know more about this issue.

    Accepted Solution

    I've read the article but it still not clear. How does Jasc/Photoshop determine the size of an image??
    My program opens an image that is scanned on 300 DPI, then it needs to get the length and the width of that specific image.
    There must be a way of doing that!

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now