PGraphics.get() alpha?
in
Programming Questions
•
1 year ago
Hi,
I'm drawing on a PGraphics object with transparent background. I want to copy it to a PImage (will be tinted afterwards), and keep the transparency. It works when I save my PGraphics object to a png and load this file to a PImage.
I'd like to find a way to do the same without saving. I tried PGraphics.get(), but it doesn't keep alpha values. How should I do?
Thanks for answering.
I'm drawing on a PGraphics object with transparent background. I want to copy it to a PImage (will be tinted afterwards), and keep the transparency. It works when I save my PGraphics object to a png and load this file to a PImage.
I'd like to find a way to do the same without saving. I tried PGraphics.get(), but it doesn't keep alpha values. How should I do?
Thanks for answering.
1