loadImage for TIF and TGA seem to be broken...
in
Programming Questions
•
1 years ago
I'm just test loading some images using the LoadDisplayImage example code in Processing.
I'm finding if I modify the code to open a tiff file rather than a JPG I get the following error:
Error: Processing can only read its own TIFF files.
Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PGraphics.image(PGraphics.java:2778)
at processing.core.PApplet.image(PApplet.java:8651)
at LoadDisplayImage.draw(LoadDisplayImage.java:39)
at processing.core.PApplet.handleDraw(PApplet.java:1631)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
If I try to load a TGA I get:
Exception in thread "Animation Thread" java.lang.ArrayIndexOutOfBoundsException: 2073600
at processing.core.PApplet.loadImageTGA(PApplet.java:4074)
at processing.core.PApplet.loadImage(PApplet.java:3700)
at processing.core.PApplet.loadImage(PApplet.java:3637)
at LoadDisplayImage.setup(LoadDisplayImage.java:33)
at processing.core.PApplet.handleDraw(PApplet.java:1608)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
I really want to open these uncompressed images, am I doing something wrong?
Ibloom
1