How to Scale an image to its real world size
-
Hi, I have images of human body parts. Is it possible to view the image at its actual real world size. How can I achieve this ? How do I confirm whether current size of the image is same as its real world size? Thanks in advance for all the help & suggestions.....
-
Hi, I have images of human body parts. Is it possible to view the image at its actual real world size. How can I achieve this ? How do I confirm whether current size of the image is same as its real world size? Thanks in advance for all the help & suggestions.....
-
You must get the DPI. For example the picture has 96dpi and the size is 1024x768 pixel. 1024/96 -> 10.67 inch 768/96 -> 8 inch That means : the print size is 10.67 x 8 inch
-
thanks stancrm, will this ensure that the image, say that of a knee will be exactly of the same size of the person's knee whose knee was pictured ?
-
Hi, I have images of human body parts. Is it possible to view the image at its actual real world size. How can I achieve this ? How do I confirm whether current size of the image is same as its real world size? Thanks in advance for all the help & suggestions.....
Hi, you will need the following: 1. most camera's generate JPG files, with embedded tags containing a lot of parameters; 2. GDI+ can paint images at their actual size, see Graphics.DrawImageUnscaled; 3. your system has a DPI setting (defaults to 96) which you can change to correspond to the actual resolution (in dpi) of your monitor; you can calculate the required value like so: Math.Sqrt(screenWidthPixels^2+screenHeightPixels^2)/screenDiagonalInches*100/96 the square root calculates number of pixels on the diagonal; the final 100/96 is needed because Windows expects the number as a percentage of 96dpi, the default value. You may be a bit out of luck if you use multiple monitors with different DPI values. 4. Your printer drivers should take care of DPI settings all by themselves. :)
Luc Pattyn
:badger: :jig: :badger:
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
:jig: :badger: :jig:
-
Hi, I have images of human body parts. Is it possible to view the image at its actual real world size. How can I achieve this ? How do I confirm whether current size of the image is same as its real world size? Thanks in advance for all the help & suggestions.....
Have you really thought this out? Are you sure your monitor is big enough to display say a full length shot of a spine? You will also need a very good camera otherwise the picture will be rubbish.
Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP