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
 Inherit from TIEImageLayer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

corundum

USA
8 Posts

Posted - Aug 18 2021 :  18:41:52  Show Profile  Reply
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.

xequte

38189 Posts

Posted - Aug 18 2021 :  19:27:56  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: