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
 Help with SetScaleFromSelectionLen

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
AndyColmes Posted - Aug 04 2015 : 10:37:42
Hello,

I am trying to implement measurements like the demo measureit to measure distances in mm and cm. I am a bit confused on how to use ImageEnVect1.SetScaleFromSelectionLen which I think is crucial to get the correct measurement. Does this have to do with the image size at all?

Also, I need to be able to make the measurement stick as a line object (with the measurement text value) after releasing the mouse. The demo at the moment clears the measurement once the mouse is released.

Thanks for any help in advance.

Andy
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 06 2015 : 16:32:25
Hi Andy

All the Scale methods ultimately do the same thing which is to set the valuue for TImageEnVect.ScaleFactor:

http://www.imageen.com/help/TImageEnVect.ScaleFactor.html

If you want a visible line use a ruler object, e.g. change:

ImageEnVect1.MouseInteractVt := [ miDragLen ];

To:

ImageEnVect1.MouseInteractvt := [ miPutRuler ];



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
AndyColmes Posted - Aug 06 2015 : 07:11:40
Hi Nigel,

Yes, I am using the MeasureIt demo. Do I still have to use SetScaleFromSelection, if I already use SetScaleFactor(10, 1) where I define 10 pixels for each mile (ieuMILES)?

Also, how do make the measurement stick as a line object after releasing the mouse? Is that possible?

Thanks Nigel.
xequte Posted - Aug 05 2015 : 18:27:15
Hi Andy

Please see the demo:

Demos\ImageAnalysis\MeasureIt\MeasureIt.dpr

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com