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
 Inherit from TIEImageLayer

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
corundum Posted - Aug 18 2021 : 18:41:52
Is it possible to inherit from TIEImageLayer and use this new layer type in ImageEnView? I want to create a component that has its own properties and use them as logic for custom drawing to an IEBitmap (instead of loading an image from disk) and then have this displayed in the inherited class. It would need to redraw itself whenever a property is changed in the editor.

I've created a mock-up of the inherited class, but it seems I can only add a TIEImageLayer to an ImageEnView (via ImageEnView.LayersAdd(...), and not the inherited class.
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 18 2021 : 19:27:56
Hi

The Layers TList is exposed, so you can actually add a custom layer as follows:

ImageEnView1.LayersList.Add( TMyCustomImageLayer.Create(self) );

Nigel
Xequte Software
www.imageen.com