Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Convert Pixel to Centimeter?
Started by Gunasekaran at 05-30-2008 7:07. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  05-30-2008, 7:07
Gunasekaran is not online. Last active: 8/29/2008 7:23:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 96
Convert Pixel to Centimeter?
Reply Quote
Hello dude

      I am using lead tools version 15.0, working in VB.Net environment using Medical Viewer control. How can i convert Pixel to centimeter in medical viewer control?

Thanks in Advance
Guna

Thanks and Regards
Guna
   Report 
  06-01-2008, 12:06
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 403
Re: Convert Pixel to Centimeter?
Reply Quote

Guna,

You can convert using this formula:

LengthCM = LenghtPixels * 2.54 / DPI

Where DPI is the resolution in dots per inch.


Adam Boulad
LEADTOOLS Technical Support

   Report 
  06-19-2008, 2:14
Gunasekaran is not online. Last active: 8/29/2008 7:23:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 96
Re: Convert Pixel to Centimeter?
Reply Quote
thanks for sending formula ....
Actually  I would like to have the  measurement in cm  while drawing Rectangle.
I have assumed the following things....

1.LengthPixel which u have mentioned in ur formula is the total no. of  pixel between the  two points(x1,y1) and (x2,y2).
I am using the following formula for calculating the total pixel count for rectangle.

2.Dpi which u have mentioned is Image Dpi or Screen dpi...

Please correct me if Iam wrong....

Thanks and Regards
Guna
   Report 
  06-19-2008, 11:31
Adam Boulad is not online. Last active: 7/23/2008 4:14:05 PM Adam Boulad



Top 10 Posts
Joined on 09-16-2007
Posts 403
Re: Convert Pixel to Centimeter?
Reply Quote
Guna, What is the formula that you are referring to? The DPI in the formula below is the Image Horizontal and vertical resolution (DPI) LengthCM = LenghtPixels * 2.54 / DPI
Adam Boulad
LEADTOOLS Technical Support

   Report 
  06-20-2008, 3:13
Gunasekaran is not online. Last active: 8/29/2008 7:23:22 AM Gunasekaran



Top 25 Posts
Joined on 05-07-2008
Chennai,India
Posts 96
Re: Convert Pixel to Centimeter?
Reply Quote
Thanks dude...

Thanks and Regards
Guna
   Report 
Post
LEAD Support Fo... » Developer » General » Convert Pixel to Centimeter?

Powered by Community Server, by Telligent Systems