Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PNG data without saving to file?
#4
(09-10-2024, 12:19 AM)Ofnuts Wrote: 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.

It looks like pixel regions is the best answer. The one issue I find with a temporary file is that it bloats the PF_IMAGE option selection with all of the deleted images.

By the way, your high quality documentation throughout time has been instrumental in my development. Thank you so much!
Reply


Messages In This Thread
PNG data without saving to file? - by nchen - 09-09-2024, 08:44 PM
RE: PNG data without saving to file? - by nchen - 09-10-2024, 12:07 AM
RE: PNG data without saving to file? - by Ofnuts - 09-10-2024, 12:19 AM
RE: PNG data without saving to file? - by nchen - 09-10-2024, 05:53 PM

Forum Jump: