PNG Transparency on Canvas
11,040
If you put a 24-bit PNG with alpha on the canvas it understands it.
https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial/Using_images
Maybe your PNGs are not clean, i.e. have non-transparent regions at the borders?
Author by
Rigil
Updated on June 04, 2022Comments
-
Rigil almost 2 years
Does canvas support PNG alpha? Im having some issues with a few PNGs that I've added to the canvas. The edges of the images are black and jagged as if no alpha channel exists or is being recognized.