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 ToGet Polyline Shape in ImageEnViewLayerNotify

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
w2m Posted - May 07 2017 : 10:09:20
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 08 2017 : 01:54:18
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
w2m Posted - May 07 2017 : 20:18:32
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
xequte Posted - May 07 2017 : 19:20:07
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