概述
ImageOps模块包含了一些“ready-made”的图像处理操作。
该模块的大多数操作只在 L和 RGB 模式的图像上有效
英文文档:
http://code.nabla.net/doc/PIL/api/PIL/PIL.ImageOps.html#module-PIL.ImageOps
常用函数
反色图像
将图像转换为反色图像,如:白字黑底 图像可以转变成 黑字白底 图像
invert(image)
ImageOps模块包含了一些“ready-made”的图像处理操作。
该模块的大多数操作只在 L和 RGB 模式的图像上有效
英文文档:
http://code.nabla.net/doc/PIL/api/PIL/PIL.ImageOps.html#module-PIL.ImageOps
将图像转换为反色图像,如:白字黑底 图像可以转变成 黑字白底 图像
invert(image)