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
 Zoom-independent line and text layer

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
yeohray2 Posted - Jan 19 2021 : 22:38:06
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.
8   L A T E S T    R E P L I E S    (Newest First)
yeohray2 Posted - Dec 15 2021 : 19:36:59
Hi Nigel, noted, thanks.

Ray
xequte Posted - Dec 15 2021 : 15:10:58
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
yeohray2 Posted - Dec 15 2021 : 03:05:52
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
yeohray2 Posted - Dec 13 2021 : 21:24:42
Noted, thanks.
xequte Posted - Dec 13 2021 : 17:44:03
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
yeohray2 Posted - Dec 13 2021 : 10:55:06
Hi, any update on zoom independent layer properties? Thanks.

Ray
yeohray2 Posted - Jan 21 2021 : 10:17:22
Noted, thanks.
xequte Posted - Jan 20 2021 : 23:04:54
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