阅读(739) 赞(3)

Pillow ImImagePlugin 模块

2021-07-17 17:03:40 更新
​classPIL.ImImagePlugin.ImImageFile(fp=None, filename=None)​

基类:PIL.ImageFile.ImageFile

​format= 'IM'​
​format_description= 'IFUNC Image Memory'​
​propertyis_animated​
​propertyn_frames​
​seek(frame)​

查找此序列文件中的给定帧。如果在序列结尾之外查找,该方法将引发 EOFError 例外。打开序列文件时,库自动查找第0帧。

见 tell() .

参数

frame -- 帧编号,从0开始。

引发

EOFError -- 如果调用试图在序列结束后查找。

​tell()​

返回当前帧号。见 seek() .

返回

帧编号,从0开始。

​PIL.ImImagePlugin.number(s)​