我试过PIL(Python图像库)。不幸的是,jython不支持它。
import Image
im = Image.open("tmp.png")
box = (100,200,300,400)
region = im.crop(box)
错误信息是
File "dota\PIL\Image.py", line 37, in __getattr__
raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
还有其他方法吗?