PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

You should create a connected loop by having only one 'm' (moveto)
command followed by the four 'c' (curveto) commands before executing the
fill.  Also, use the lower case 'b' to close the path before filling.

Jon Anderson
http://www.bengtcg.com

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gordon Campbell
Sent: Thursday, December 04, 2003 4:25 PM
To: [EMAIL PROTECTED]
Subject: [PDFdev] Filling Circle



PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com
_____________________________________________________________

Hello,

I've added some code to my project that allows for the cretion of a
circle based on x,y locations and a radius.  I borrowed the necessary
output
(sample) from a previous post (see
http://www.pdfzone.com/discussions/archives/1996_200304/pdfdev/data/2002
07/m
sg00185.html ) and extended it to include all quadrants.

I now want to be able to fill that circle ... so I added some output to
my PDF file.  I've included the output below.  When I do my 'fill' it
only fills within the individual Bevier curves ... so it leaves a
rectangle unfilled.  Do I need to create a rectangle object to fill this
area or am I missing something in my output ?

q
 1 0 0 rg
1 w
1 0 0 rg
350 200 m
350 282.84271 282.84271 350 200 350 c

1 w
350 200 m
350 117.15729 282.84271 50 200 50 c

1 w
50 200 m
50 117.15729 117.15729 50 200 50 c

1 w
50 200 m
50 282.84271 117.15729 350 200 350 c
B

Q

Thanks,
Gordon



To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html



To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html

Reply via email to