Could a Processing PImage object be converted to a Java Image object ?
Hi ALL,
I could only know of one method to do such convertion. That is, save the PImage object into a file (e.g. GIF file) and then load the file into a Java Image object. But this approach involves disk operations and could be a bit slower.
Does anyone know of a method to directly transfer the PImage object to a Java Image object (i.e. no disk operation) ?
Moreover, could a Processing PGraphics object be similiarly converted to a Java Graphics object ?
Thanks for any suggestion.
Regards
Lawrence