Pillow IcnsImagePlugin模块
2021-07-19 09:25 更新
-
class
PIL.IcnsImagePlugin.
IcnsFile
(fobj) 基类:
object
SIZES
= {(16, 16, 1): [(b'icp4', <function read_png_or_jpeg2000>), (b'is32', <function read_32>), (b's8mk', <function read_mk>)], (16, 16, 2): [(b'ic11', <function read_png_or_jpeg2000>)], (32, 32, 1): [(b'icp5', <function read_png_or_jpeg2000>), (b'il32', <function read_32>), (b'l8mk', <function read_mk>)], (32, 32, 2): [(b'ic12', <function read_png_or_jpeg2000>)], (48, 48, 1): [(b'ih32', <function read_32>), (b'h8mk', <function read_mk>)], (64, 64, 1): [(b'icp6', <function read_png_or_jpeg2000>)], (128, 128, 1): [(b'ic07', <function read_png_or_jpeg2000>), (b'it32', <function read_32t>), (b't8mk', <function read_mk>)], (128, 128, 2): [(b'ic13', <function read_png_or_jpeg2000>)], (256, 256, 1): [(b'ic08', <function read_png_or_jpeg2000>)], (256, 256, 2): [(b'ic14', <function read_png_or_jpeg2000>)], (512, 512, 1): [(b'ic09', <function read_png_or_jpeg2000>)], (512, 512, 2): [(b'ic10', <function read_png_or_jpeg2000>)]}
-
bestsize
()
-
dataforsize
(size) 获取图标资源作为通道:数组。请注意,数组是自底向上的,类似于Windows位图,可能需要以某种方式翻转或转置。
-
getimage
(size=None)
-
itersizes
()
-
class
PIL.IcnsImagePlugin.
IcnsImageFile
(fp=None, filename=None) 基类:
PIL.ImageFile.ImageFile
对mac os.icns文件的pil映像支持。选择最佳分辨率,但如果在调用“load”之前改变大小属性,则可能加载不同大小的图像。
信息字典有一个键“大小”,它是ICN文件的大小列表。
-
format
= 'ICNS'
-
format_description
= 'Mac OS icns resource'
-
load
() 基于平铺列表加载图像数据
-
property
size
-
-
PIL.IcnsImagePlugin.
nextheader
(fobj)
-
PIL.IcnsImagePlugin.
read_32
(fobj, start_length, size) 读取32位RGB图标资源。似乎要么是未压缩的,要么是一个像rle-packbits的方案。
-
PIL.IcnsImagePlugin.
read_32t
(fobj, start_length, size)
-
PIL.IcnsImagePlugin.
read_mk
(fobj, start_length, size)
-
PIL.IcnsImagePlugin.
read_png_or_jpeg2000
(fobj, start_length, size)
以上内容是否对您有帮助:
更多建议: