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 ToGet Polyline Shape in ImageEnViewLayerNotify
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - May 07 2017 :  10:09:20  Show Profile  Reply
If you set a polylinelayer shape:
{ Set Shape To Supported_Generate_Points_Shapes }
case PolyLineShape1.ItemIndex of
0:
   iShape := iesRectangle;
1:
   iShape := iesRoundRect;
2:
   iShape := iesTriangle;
3:
   iShape := iesCorner;
4:
   iShape := iesDiamond;
5:
   iShape := iesStar5;
6:
   iShape := iesStar6;
7:
   iShape := iesArrowLeft;
8:
   iShape := iesArrowRight;
9:
   iShape := iesArrowUp;
10:
   iShape := iesArrowDown;
11:
   iShape := iesFatArrowUp;
12:
   iShape := iesFatArrowLeft;
13:
   iShape := iesFatArrowRight;
14:
   iShape := iesFatArrowDown;
15:
   iShape := iesArrowLeftRight;
16:
   iShape := iesArrowUpDown;
17:
   iShape := iesArrowNW;
18:
   iShape := iesArrowNE;
19:
   iShape := iesArrowSW;
20:
   iShape := iesArrowSE;
21:
   iShape := iesShootingArrowNW;
22:
   iShape := iesShootingArrowNE;
23:
   iShape := iesShootingArrowSW;
24:
   iShape := iesShootingArrowSE;
25:
   iShape := iesLightningLeft;
26:
   iShape := iesLightningRight;
27:
   iShape := iesExplosion;
28:
   iShape := iesCross;
29:
   iShape := iesShield;
30:
   iShape := iesBadge;
31:
   iShape := iesNamePlate;
32:
   iShape := iesPentagon;
33:
   iShape := iesHexagon;
34:
   iShape := iesHeptagon;
35:
   iShape := iesOctagon;
else
   iShape := iesExplosion;
end;
TIEPolylineLayer(ImageEnView.CurrentLayer).SetPoints(iShape, True);

how can you get iShape in ImageEnViewLayerNotify?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development

xequte

38189 Posts

Posted - May 07 2017 :  19:20:07  Show Profile  Reply
Hi Bill

You would either need to store the current "Shape" in the tag property, or use a TIEShapeLayer.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 07 2017 :  20:18:32  Show Profile  Reply
The tag property is integer value so how can you store TIEShape value? I think something is lacking here when using TIEPolylineLayer SetPoints. Maybe another layer property is needed for this?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38189 Posts

Posted - May 08 2017 :  01:54:18  Show Profile  Reply
Hi Bill

TIEPolylineLayer is not intended as a replacement for TIEShapeLayer. The ability to inherit a point list from some TIEShapes is just included because it was easy to do.

If you want to save your current shape, you could do something like:

ImageEnView1.CurrentLayer.tag := ord( aShape );

And use as follows:

Case TIEShape( ImageEnView1.CurrentLayer.tag ) of...

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