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
 How to make the layer (text) not zoom in or out with the image and always be top

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
Flashcqxg Posted - Aug 14 2023 : 21:49:34
I would like to place a layer of text type on the imageenview, which requires:
1. This layer is always at the top level.
2. Regardless of whether the image is loaded or not, the size of this layer and the size of the text are not affected by zooming in or out.
thanks.
8   L A T E S T    R E P L I E S    (Newest First)
Flashcqxg Posted - Aug 17 2023 : 20:32:30
foxdingding,thank you.
foxdingding Posted - Aug 17 2023 : 20:22:36
In Win10:

SetLayeredWindowAttributes (Panel.Handle,
RGB($FF, $FF, $FF),
bAlpha, 1 or 2);
Flashcqxg Posted - Aug 17 2023 : 00:09:28
thanks.
xequte Posted - Aug 16 2023 : 21:01:09
Or you can use the TImageEnView draw events to always put text in a specific position:

http://www.imageen.com/help/TImageEnView.OnDrawBackBuffer.html

Nigel
Xequte Software
www.imageen.com
Flashcqxg Posted - Aug 16 2023 : 21:00:04
thank you.
But cannot set TLabel or TPanel to transparent.
foxdingding Posted - Aug 16 2023 : 20:56:58
I suggest you use TLabel or TPanel
Flashcqxg Posted - Aug 16 2023 : 19:43:04
thanks.
I want to Set the text to always be in this place, Regardless of whether the image is loaded or not.

xequte Posted - Aug 16 2023 : 19:02:12
Hi

1. Monitor the ImageChange event and ensure the layer has the top-most index:

http://www.imageen.com/help/TIELayer.LayerIndex.html

2. You can use ScaleLocking to prevent any effect of zooming:

http://www.imageen.com/help/TIELayer.ScaleLocking.html

Nigel
Xequte Software
www.imageen.com