Transparent PNG issue
in
Contributed Library Questions
•
2 years ago
Hi,
I'm having an issue where I'm drawing strokes with a png brush using pgraphics (and the png i am using is fully transparent), but the bounding box/frame of the png is being drawn. See attached image:
This is the PGraphics routine:
- paint.beginDraw();
- //paint.background(255);
- //paint.tint(255, 128);
- //paint.blend(paint, 0, 0, paint.width, paint.height, 0, 0, paint.width, paint.height, EXCLUSION);
- paint.image(brush1, gmlX * width, gmlY * height);
- paint.endDraw();
I've tried a few different things (as you can see from the commented lines), such as setting the background within the PGraphics buffer, tints, and blends, but no difference...
My sketch renderer is set to OPENGL (though I've tried P3D, with no difference), and my PGraphics is P2D (though again, I've tried P3D, with no difference...
I've also browsed through the forum, and none of the PNG issues posted really seemed to cover this issue...
So, I'm open to thoughts/ideas !! ??? Thanks...
~ J
1