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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Zoom-independent line and text layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yeohray2

Malaysia
106 Posts

Posted - Jan 19 2021 :  22:38:06  Show Profile  Reply
I have a large image where users can add text layers to annotate parts of the image. Is it possible to make the text layers zoom independent?

So say I added a text layer with 12 point font. No matter the zoom level (50%, 100%, 200% etc), I would like to maintain the text at 12-point font on-screen. Is that possible, or do I need to adjust the font size manually to sync with the zoom level?

While I can adjust the font sizes, how about line widths in line and polyline layers? The minimum line width is 1 pixel, so is there a way to still draw 1-pixel lines when the zoom level is > 100%?

Thanks in advance.

xequte

38613 Posts

Posted - Jan 20 2021 :  23:04:54  Show Profile  Reply
Hi

Zoom independent layer properties is not yet possible, but it is on our to-do list. I will try to get onto this before too long.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
106 Posts

Posted - Jan 21 2021 :  10:17:22  Show Profile  Reply
Noted, thanks.
Go to Top of Page

yeohray2

Malaysia
106 Posts

Posted - Dec 13 2021 :  10:55:06  Show Profile  Reply
Hi, any update on zoom independent layer properties? Thanks.

Ray
Go to Top of Page

xequte

38613 Posts

Posted - Dec 13 2021 :  17:44:03  Show Profile  Reply
Hi Ray

We pushed this feature back because there were some dependencies that it affected. We'll look to implement in 2022.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
106 Posts

Posted - Dec 13 2021 :  21:24:42  Show Profile  Reply
Noted, thanks.
Go to Top of Page

yeohray2

Malaysia
106 Posts

Posted - Dec 15 2021 :  03:05:52  Show Profile  Reply
Seeing as how I only needed to draw resolution independent lines for polylines layers, I took a stab at using the OnDrawBackBuffer event. I set the polyline layer fill and line color to none, and instead drew the lines in the OnDrawBackBuffer event using the layer's points.

At 100% zoom or so, the grip handles match up with the manually drawn lines. Beyond 500% or more, the lines start to diverge from the grip handles at certain points.

The white line is the layer's line (displayed for reference) and the red line is drawn in the OnDrawBackBuffer event.



The divergence increases as the zoom level increases. I've attached the sample project, which basically uses the GetPointEx and XBmp2Scr functions to determine where to draw the lines.

Is there some other function I should be using instead, so that the lines converge nicely at the grip handles?

Thank you in advance.

Ray

attach/yeohray2/202112153450_source.zip
54.21 KB
Go to Top of Page

xequte

38613 Posts

Posted - Dec 15 2021 :  15:10:58  Show Profile  Reply
Hi Ray

Please email me next week after the release of 10.3.0 and I'll have an update that supports ScaledProperties.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yeohray2

Malaysia
106 Posts

Posted - Dec 15 2021 :  19:36:59  Show Profile  Reply
Hi Nigel, noted, thanks.

Ray
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: