Hi;
I now have the outer line in the color I want - but
no luck with the fill. Here is my code. Any ideas?
RtfColor clr =
doc.getHeader().getColor( num );
cb.setRGBColorFill( clr.getRed(), clr.getGreen(), clr.getBlue() );
cb.setRGBColorStroke( clr.getRed(), clr.getGreen(), clr.getBlue() );
cb.rectangle((float)pt.x / 20.0f, (float)(height - pt.y - pt.descent) / 20.0f, (float)pt.len / 20.0f, (float)(pt.ascent + pt.descent) / 20.0f);
cb.setRGBColorFill( clr.getRed(), clr.getGreen(), clr.getBlue() );
cb.setRGBColorStroke( clr.getRed(), clr.getGreen(), clr.getBlue() );
cb.rectangle((float)pt.x / 20.0f, (float)(height - pt.y - pt.descent) / 20.0f, (float)pt.len / 20.0f, (float)(pt.ascent + pt.descent) / 20.0f);
cb.stroke();
thanks - dave
----- Original Message -----
From: "David Thielen" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>
Cc: "itext" <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 1:44 PM
Subject: Re: [iText-questions] drawing a solid
rectangle
>
> 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
> >
>
