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
 filled polygon
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

haida

Liechtenstein
2 Posts

Posted - Apr 04 2012 :  01:33:33  Show Profile  Reply
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

fab

1310 Posts

Posted - Apr 04 2012 :  04:40:05  Show Profile  Reply
Hello Alex,
polyline must be closed to become filled polygon. So, you should set also:

imgVect.ObjPolylineClosed[-1] := true;
Go to Top of Page

haida

Liechtenstein
2 Posts

Posted - Apr 04 2012 :  07:52:40  Show Profile  Reply
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.
Go to Top of Page

fab

1310 Posts

Posted - Apr 04 2012 :  23:10:52  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: