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.
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?