How do you draw transparent polygons with Python?

后端 未结 7 1313
独厮守ぢ
独厮守ぢ 2020-12-05 10:28

I\'m using PIL (Python Imaging Library). I\'d like to draw transparent polygons. It seems that specifying a fill color that includes alpha level does not work. Are their

7条回答
  •  半阙折子戏
    2020-12-05 10:47

    I'm using cairo + pycairo for this, and it works well. And you can share image data between PIL and cairo, using python buffer interface, if there is operation in pil that can't be done in cairo.

提交回复
热议问题