2020年12月30日星期三

How to draw text on transparent background?

I am trying to draw text on transparent canvas, the result bitmap should be overlayed on another canvas with colored background.
But drawing without any background color make semitransparent pixels around text are black. It seems like canvas can't mix transparent background and actual semitransparent color of text correctly.

Example

Any suggestion?

https://stackoverflow.com/questions/65516484/how-to-draw-text-on-transparent-background December 31, 2020 at 12:02PM

没有评论:

发表评论