Processing Library for Java in Netbeans - load an image without extending PApplet -
Processing Library for Java in Netbeans - load an image without extending PApplet -
working in netbeans, having included processing.core import, trying next in method...
papplet pbase = new papplet(); pimage img = pbase.loadimage(filepath); pbase.set(0,0,img); pbase.save(newfilepath);
.. instead of using "myclass extends papplet" method since i'm not planning draw on screen. wish utilize processing library image functions available within applet.
apart above code, additional thing i've done include import processing.core.
am obliged create class , utilize in papplet.main("my.package.mainmethod") or can utilize standard library (i.e. above)?
the above gives me nullpointer exception. i've read somewhere code i've written doesn't generate canvas why doesn't work.
papplet pbase = new papplet(); pbase.init(); pimage img = pbase.loadimage(filepath);
i forgot phone call init() - clue beingness in applet!
java netbeans processing
Comments
Post a Comment