Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
harry stahl
Posted - Feb 21 2023 : 12:39:53 I like the measurement functionality.
How can I write the information about the measurement info (the same appeareance) into the image, in the mouseup-event?
HS
7 L A T E S T R E P L I E S (Newest First)
xequte
Posted - Feb 28 2023 : 16:06:39 That looks correct. The left 5.03 is not anti-aliased because LayersFastDrawing is enabled, and the right 5.03 is the sizing hint.
Are you looking for the text to be above the line?
Posted - Feb 28 2023 : 13:20:03 I see this, if I move the mouse:
HS
xequte
Posted - Feb 27 2023 : 20:10:32 Hi Harry
Strictly speaking it is better to use OnLayerNotify to know the get the end of layer creation:
procedure TForm1.ImageEnView1LayerNotifyEx(Sender: TObject; layer: Integer;
event: TIELayerEvent);
begin
if event = ielCreated then
ImageEnView1.LayersMerge();
end;
But I cannot see any issues either way. Can you post some screenshots of what you are seeing?
But as an result I get a black rectangle at the left side (or top), with the meausrement-info in it and connected with a line. But the measurement is not right, it seems that the size of the rectangle.with (or hight, depends on the direction the mouse is moved) is substracted.
Do I something wrong here?
HS
xequte
Posted - Feb 21 2023 : 22:29:50 A layer will persist as long as needed (even if RulerMode is enabled). If you are wanting the same effect as the measure interactions (e.g. miMeasureLength), but have the layer persist after positioning, then use a layer creation interaction, such as mlClickCreateLineLayers (and in the OnNewLayer event enable RulerMode).
Then to "burn" it into the image you can use LayersMerge();
Posted - Feb 21 2023 : 17:35:27 Yes, thank you, but my question is, how to paint the rulerinfo persistent to the image (not as layer, that escapes, when the measurement ends).