Bug 1172 : pdf export: strokeWeight() ignored with beginRaw/endRaw
Last modified: 2009-02-27 02:07




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
bohnacker
Assigned To:
fry

Attachment Type Created Size Actions
Output in the applet window image/png 2009-02-23 08:53 714 bytes
PDF output using the P3D renderer application/pdf 2009-02-23 08:53 809 bytes
PDF output using the OpenGL renderer application/pdf 2009-02-23 08:54 809 bytes

Description:   Opened: 2009-02-23 08:52
Processing 1.0.2 (with new opengl.jar, pdf.jar and core.jar from 02/23/09)
Mac OS X 10.5.6

All lines exported with beginRaw/endRaw have weight 1 (OpenGL and P3D).

------
import processing.opengl.*;
import processing.pdf.*;


void setup() {
size(200, 200, OPENGL);

beginRaw(PDF, "bug_rep.pdf");

strokeWeight(20);
line(30, 70, 170, 130);

endRaw();
saveFrame("bug_rep.png");

exit();
}
------
Additional Comment #1 From bohnacker 2009-02-23 08:53
edit]
Output in the applet window
Additional Comment #2 From bohnacker 2009-02-23 08:53
edit]
PDF output using the P3D renderer
Additional Comment #3 From bohnacker 2009-02-23 08:54
edit]
PDF output using the OpenGL renderer
Additional Comment #4 From fry 2009-02-23 10:14
That's all working fine on my end after my changes from earlier, I guess
you'll just have to wait for the next release (or build from the SVN
repository) in order to get all the pieces working together.

I found another problem with weights being too large or small, but that's
not what you're seeing here.
Additional Comment #5 From bohnacker 2009-02-27 02:07
You're right. Now with the new release 1.0.3 it also works fine on my end.
Thanks!