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 & HelpIntegration › Drag n Drop Security
Page Index Toggle Pages: 1
Drag n Drop Security (Read 679 times)
Drag n Drop Security
Mar 4th, 2006, 8:13pm
 
I am trying to allow drag and drop of images into a processing applet.  This works fine in Processing and the exported version... but not when the exported version is hosted remotely.  The jar file is signed and one is prompted appropriatly to accept the signature.

Apparently the image itself is not being transfered as the PImage seems to have a pixel array of size 1....

My real question - is this error related to security of executing remote applets or something else?

java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0

at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)

at java.awt.image.BufferedImage.<init>(Unknown Source)

at processing.core.PGraphics2$ImageCache.<init>(PGraphics2.java:552)

at processing.core.PGraphics2.imageImpl(PGraphics2.java:514)

at processing.core.PGraphics.image(PGraphics.java:1448)

at processing.core.PGraphics.image(PGraphics.java:1429)

at processing.core.PApplet.image(PApplet.java:5921)

at CC_bezier$FloatingImage.draw(CC_bezier.java:305)

at CC_bezier.draw(CC_bezier.java:133)

at processing.core.PApplet.display(PApplet.java:1082)

at processing.core.PGraphics.requestDisplay(PGraphics.java:362)

at processing.core.PApplet.run(PApplet.java:921)

at java.lang.Thread.run(Unknown Source)


tony
Page Index Toggle Pages: 1