No, unless you want to rewrite your own plugin.
Using a temporary disk file is not as bad as it looks, because with PNG the encoding is very slow (so you aren't adding that much time with the file I/O in a decent OS).
If you can transfer the raw data (or something close such as BMP or Targa) you can get the layer as a python array using pixel regions.
Using a temporary disk file is not as bad as it looks, because with PNG the encoding is very slow (so you aren't adding that much time with the file I/O in a decent OS).
If you can transfer the raw data (or something close such as BMP or Targa) you can get the layer as a python array using pixel regions.