Python: PIL replace a single RGBA color

前端 未结 3 1497
渐次进展
渐次进展 2020-11-30 04:22

I have already taken a look at this question: SO question and seem to have implemented a very similar technique for replacing a single color including the alpha values:

3条回答
  •  半阙折子戏
    2020-11-30 04:45

    The Pythonware PIL online book chapter for the Image module stipulates that putpixel() is slow and suggests that it can be sped up by inlining. Or depending on PIL version, using load() instead.

提交回复
热议问题