From: pandeng@telepath.com (Steve Schafer (TeamB)) Subject: Re: SV: Bezier curves in D5 Date: 03 Nov 1999 00:00:00 GMT Message-ID: <38247819.166015936@90.0.0.40> Content-Transfer-Encoding: 8bit References: <7vpdrn$c0s4@forums.borland.com> <383059b6.158235697@90.0.0.40> <7vpo7v$e9810@forums.borland.com> Content-Type: text/plain; charset=ISO-8859-1 Organization: TeamB Mime-Version: 1.0 Reply-To: pandeng@telepath.com Newsgroups: borland.public.delphi.graphics On Wed, 3 Nov 1999 17:46:38 +0100, "Jonas Nyström" wrote: >it draws an bezier line (like method TCanvas.polyline), but i want a solid >object (like TCanvas.polygon), without afterwards filling it. Is that >possible? Well, the code you posted doesn't create a closed path, so I'm not sure how you want it to be "filled." In general, you can do this: 1) Before drawing your curve: BeginPath(Canvas.Handle); 2) After drawing your curve: CloseFigure(Canvas.Handle); EndPath(Canvas.Handle); StrokeAndFillPath(Canvas.Handle); -Steve