[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 603
  • Last Modified:

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

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

0
Ornico4807
Asked:
Ornico4807
  • 2
  • 2
1 Solution
 
nmarunCommented:
0
 
Ornico4807Author Commented:
Hi nmarun
That solution anly returns the image size in pixels. Any other idea's to get the size in centimeter/milimeter?
0
 
nmarunCommented:
http://www.xtremedotnettalk.com/showthread.php?t=72094

Read all the way and you'll get to know more about this issue.
0
 
Ornico4807Author Commented:
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!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now