error no copy() for PGraphicsPDF
in
Programming Questions
•
1 year ago
Hi -
I am getting the following error sometimes in a sketch I am running , I think the error is occuring at this line in my code:
copy(video, viewX, viewY, (int) (width/(float) viewScale), (int) (height/(float) viewScale), 0, 0, width, height);
Exception in thread "Animation Thread" java.lang.RuntimeException: No copy() for PGraphicsPDF
at processing.pdf.PGraphicsPDF.
nope(Unknown Source)
at processing.pdf.PGraphicsPDF.
copy(Unknown Source)
at processing.core.PApplet.copy(
Unknown Source)
at flickrMotionDet.draw(
flickrMotionDet.java:151)
at processing.core.PApplet.
handleDraw(Unknown Source)
at processing.core.PApplet.run(
Unknown Source)
at java.lang.Thread.run(Thread.
java:662)
at processing.pdf.PGraphicsPDF.
at processing.pdf.PGraphicsPDF.
at processing.core.PApplet.copy(
at flickrMotionDet.draw(
at processing.core.PApplet.
at processing.core.PApplet.run(
at java.lang.Thread.run(Thread.
I did not used to get this error until i decided to use the postToWeb library for Processing, which uses the processingPDF core library. So, I'm confused how to stop getting this error . I thought pdf.dispose() might do the trick , but it isn't .
here is the code
thanks
gabriella
1