阅读(2447) 赞(8)

PsdImagePlugin 模块

2021-07-19 09:37:43 更新
​classPIL.PsdImagePlugin.PsdImageFile(fp=None, filename=None)​

基类:PIL.ImageFile.ImageFile

​format= 'PSD'​
​format_description= 'Adobe Photoshop'​
​load_prepare()​
​seek(layer)​

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

见 tell() .

参数

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

引发

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

​tell()​

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

返回

帧编号,从0开始。