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
 How to draw several shapes in one layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

NotTooSmart

USA
12 Posts

Posted - Jun 30 2021 :  14:59:02  Show Profile  Reply
I am looking into the simple layers demo and I am getting frustrated trying to trace the different functions and find out where does the layer gets changed so I can have some control. I want to add several shapes in the same layer, but the layers keep adding. Any help will be appreciated.

Jorge

xequte

39053 Posts

Posted - Jun 30 2021 :  15:32:24  Show Profile  Reply
Hi Jorge

The TIEShapeLayer object only supports a single shape. You need to merge the layers if you want to have multiple shapes (they will become images layers).

e.g.

ImageEnView1.LayersAdd( iesEllipse );
ImageEnView1.LayersAdd( iesStar5 );
ImageEnView1.LayersAdd( iesCloud );
ImageEnView1.LayersMerge([1,2,3]);


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: