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
 filled polygon

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
haida Posted - Apr 04 2012 : 01:33:33
Hi @all.

I need to fill polygons with a hatching (eg BrushStyle bsFDiagonal). I call following code on a toolbutton. Drawing works fine, but the polygon is not filled?

imgVect.MouseInteractVt := [miPutPolyLine];
imgVect.ObjBrushStyle[-1] := bsFDiagonal;
imgVect.ObjBrushColor[-1] := clRed;

Is there a way to fill a polygon?

Thanks.
alex
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Apr 04 2012 : 23:10:52
quote:
Is there a way to suppress adding points to the polygonline, while keeping the mouse button pressed? I want only single clicks to add points to the polyline.


I'm sorry, no. At the moment, it cannot be disabled.
haida Posted - Apr 04 2012 : 07:52:40
Thanks Fabrizio. That works.

Is there a way to suppress adding points to the polygonline, while keeping the mouse button pressed? I want only single clicks to add points to the polyline.
fab Posted - Apr 04 2012 : 04:40:05
Hello Alex,
polyline must be closed to become filled polygon. So, you should set also:

imgVect.ObjPolylineClosed[-1] := true;