I tried that and it gave me a black square with nothing inside it.

I did:

    cb.setColorFill( new Color( (float)clr.getRed() / 255.0f,
(float)clr.getGreen() / 255.0f, (float)clr.getBlue() / 255.0f ));
    cb.rectangle((float)pt.x / 20.0f, (float)(height - pt.y) / 20.0f, 72,
72);
    cb.stroke();


----- Original Message -----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "David Thielen" <[EMAIL PROTECTED]>; "itext"
<[EMAIL PROTECTED]>
Sent: Saturday, February 15, 2003 8:54 AM
Subject: Re: [iText-questions] drawing a solid rectangle


> PdfContentByte.rectangle()
>
> ----- Original Message -----
> From: "David Thielen" <[EMAIL PROTECTED]>
> To: "itext" <[EMAIL PROTECTED]>
> Sent: Friday, February 14, 2003 23:53
> Subject: [iText-questions] drawing a solid rectangle
>
>
> > Hi;
> >
> > To draw a rectangle do I need to lineTo/moveTo around the edge and then
> > call fill? Or is there an easier way?
> >
> > thanks - dave
> >
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to