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
 BaseLayer(Image), PerimeterLayer(Polygon), BoxLayers(Multiple Polygons)

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
andyhill Posted - Feb 22 2025 : 13:15:52
How do I reference a Selected BoxLayer X/Y Offset against the underling Perimeter Layer ?
eg.
|-------------------------------------------------------------------------------|
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                  |----|       |
|                                                                  |    |       |
|                                                                  |----|       |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|                                                                               |
|-------------------------------------------------------------------------------|

All of my testing for X/Y points only relates to Box Layer, I need to reference Box Layer Offset Points against the underlying Perimeter Layer (without merging layers) ?

Please advise - Thanks in advance

Andy
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 25 2025 : 13:46:20
No, that's not correct. XScr2Bmp only converts a pixel position on the screen (affected by zoom and scrolling) into a pixel on the bitmap.



Nigel
Xequte Software
www.imageen.com
andyhill Posted - Feb 25 2025 : 12:49:10
My question was once I set the Scale, then irrespective of Zoom, Layer or DPI, all of the XScr2Bmp functions etc. will return results based on Scale - Is this correct ?

Andy
xequte Posted - Feb 24 2025 : 18:00:22
Sorry Andy, which measurements are you referring to?


Nigel
Xequte Software
www.imageen.com
andyhill Posted - Feb 24 2025 : 13:47:56
Thanks Nigel.

Also I have set the Scale

ImageEnView.SetScale(941, 91.44, ieuCentimeters);

So all measurements are now returned with the Scale taken into consideration - YES ?



Andy
xequte Posted - Feb 23 2025 : 19:39:45
Hi Andy

Sorry, I'm not sure what you mean by that. Perhaps I'm not quite understanding your requirements.

The position of a point on a layer (in terms of the underlying bitmap) can be obtained using:

https://www.imageen.com/help/TImageEnView.XScr2Bmp.html
https://www.imageen.com/help/TImageEnView.YScr2Bmp.html

Or for the layer:

https://www.imageen.com/help/TIELayer.ConvXScr2Bmp.html
https://www.imageen.com/help/TIELayer.ConvYScr2Bmp.html

And the origin of each layer (its PosX, PosY) is specified in terms of the underlying bitmap.

Nigel
Xequte Software
www.imageen.com
andyhill Posted - Feb 23 2025 : 17:15:44
Tried that but all sorts of irregularities. I am now doing this after each Layer Creation

ImageEnView.LayersSetProperties(LYR_ALL_LAYERS, IELP_RulerUnits, IntToStr(ord(IEGlobalSettings().DefaultMeasureUnit)));

will advise

Andy
xequte Posted - Feb 23 2025 : 02:12:08
Hi Andy

Why not just subtract the PosX,PosY for the perimeter from the box layer PosX,PosY?

Nigel
Xequte Software
www.imageen.com