cb.fillStroke().

----- Original Message ----- 
From: "David Thielen" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>
Cc: "itext" <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 21:18
Subject: Re: [iText-questions] drawing a solid rectangle


> 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.stroke();
>  
> thanks - dave
>  
> ----- Original Message ----- 
> From: "David Thielen" <  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]>
> To: "Paulo Soares" <  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]>
> Cc: "itext" <  <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED]>
> Sent: Saturday, March 29, 2003 1:44 PM
> Subject: Re: [iText-questions] drawing a solid rectangle
> 
> 
> > 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" <  <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED]>
> > To: "David Thielen" <  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]>;
> "itext"
> > <  <mailto:[EMAIL PROTECTED]>
> [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" <  <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED]>
> > > To: "itext" <  <mailto:[EMAIL PROTECTED]>
> [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> http://thinkgeek.com/sf
> > > _______________________________________________
> > > iText-questions mailing list
> > >  <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED]
> > >  <https://lists.sourceforge.net/lists/listinfo/itext-questions>
> 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