We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › PDF export without strokes
Page Index Toggle Pages: 1
PDF export without strokes (Read 679 times)
PDF export without strokes
Aug 22nd, 2009, 1:43am
 
Hello everybody,

I am new to Processing (and this forum).

I've created a simple picture with rectangles WITHOUT strokes around.

When I export it to TIFF, it's correct without strokes,
but when I output it to PDF, there are thin black lines (strokes) around the rectangles.

How can I avoid that?

Thanks for your help!
Re: PDF export without strokes
Reply #1 - Aug 22nd, 2009, 2:01am
 
Sorry, I found the solution  Cheesy

I put before every "rect" - command a "noStroke()".

For the screen it's sufficient to put the noStroke()-command in the setup,

but for the PDF-export it's better to put it before every paint-command?
Re: PDF export without strokes
Reply #2 - Aug 22nd, 2009, 5:47am
 
You don't need to put before every paint command but inside your beginRecord()endRecord() commands. Cause only the methods called there are applied to the pdf.
Re: PDF export without strokes
Reply #3 - Aug 22nd, 2009, 7:47am
 
Ah, okay, thanks for your help.

Yes, it works Wink
Page Index Toggle Pages: 1