ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Object real size

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
c.basso Posted - Apr 02 2015 : 10:00:50
I have an image,
I've set the scale using SetScaleFromPixels.
MUnit is set to Millimeters.

So I know that 63pixel are equal to 10mm in my image.
The ScaleFactor is approx 1,87...

Now I need to create programmatically an object that is 10mm length.

I dont' understand how to use ScaleFactor value,
If I do:
10 / ScaleFactor = 5,34... ???

Thanks
Claudio

Claudio
1   L A T E S T    R E P L I E S    (Newest First)
c.basso Posted - Apr 02 2015 : 13:35:45
Solved!

If you are using MUnit as Millimeters:
To get pixel value:
(ImageEn.DpiX / ScaleFactor * MM_VALUE) / 25,4

(/ 25,4 is to get Inch from mm)


Claudio