Is there an antialiasing method for Python PIL?

前端 未结 2 1120
孤街浪徒
孤街浪徒 2020-12-10 01:47

For lines and ellipses in PIL, the images are rough.

I found antialiasing only in resize and thumbnail.

Is there any way to do antialiasing when drawing a li

2条回答
  •  一向
    一向 (楼主)
    2020-12-10 02:04

    aggdraw (http://effbot.org/zone/aggdraw-index.htm) may be something you're interested in.

    The aggdraw module implements the basic WCK 2D Drawing Interface on top of the AGG library. This library provides high-quality drawing, with anti-aliasing and alpha compositing, while being fully compatible with the WCK renderer.

    The aggdraw module can be used with PIL or the WCK library (under Tkinter or native Windows). It can also be used as a stand-alone library.

提交回复
热议问题