codecamp

Pillow 内部模块

_binary 模块

二进制输入/输出支持例程。

PIL._binary.i16be(co=0)
PIL._binary.i16le(co=0)

将2字节(16位)字符串转换为无符号整数。

参数
  • c -- 包含要转换的字节的字符串

  • o -- 要在字符串中转换的字节偏移量

PIL._binary.i32be(co=0)
PIL._binary.i32le(co=0)

将4字节(32位)字符串转换为无符号整数。

参数
  • c -- 包含要转换的字节的字符串

  • o -- 要在字符串中转换的字节偏移量

PIL._binary.i8(c)
PIL._binary.o16be(i)
PIL._binary.o16le(i)
PIL._binary.o32be(i)
PIL._binary.o32le(i)
PIL._binary.o8(i)
PIL._binary.si16le(co=0)

将2字节(16位)字符串转换为带符号整数。

参数
  • c -- 包含要转换的字节的字符串

  • o -- 要在字符串中转换的字节偏移量

PIL._binary.si32le(co=0)

将4字节(32位)字符串转换为带符号整数。

参数
  • c -- 包含要转换的字节的字符串

  • o -- 要在字符串中转换的字节偏移量

_tkinter_finder ​模块

查找链接到Tcl/Tk库的编译模块

_util​ 模块

classPIL._util.deferred_error(ex)

基类:object

PIL._util.isDirectory(f)
PIL._util.isPath(f)

_version​ 模块

PIL._version.__version__: str

这是Pillow的主版本号,所有其他用途都参考此模块。

PIL.Image.core​ 模块

以前称为的内部接口模块 ​_imaging ​,实施于 ​_imaging.c​ 。


Pillow 分块分配程序
使用 gbd/valgrind的Linux C 扩展调试
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

Pillow 参考

Pillow ImageChops模块

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }