Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark, in light modeAuto light/dark, in dark modeSkip to content
Pillow (PIL Fork) 12.0.0 documentation
Light LogoDark Logo
Pillow (PIL Fork) 12.0.0 documentation
Back to top

Internal modules

_binary module

Binary input/output support routines.

PIL._binary.i16be(c:bytes,o:int=0)int[source]
PIL._binary.i16le(c:bytes,o:int=0)int[source]

Converts a 2-bytes (16 bits) string to an unsigned integer.

Parameters:
  • c – string containing bytes to convert

  • o – offset of bytes to convert in string

PIL._binary.i32be(c:bytes,o:int=0)int[source]
PIL._binary.i32le(c:bytes,o:int=0)int[source]

Converts a 4-bytes (32 bits) string to an unsigned integer.

Parameters:
  • c – string containing bytes to convert

  • o – offset of bytes to convert in string

PIL._binary.i8(c:bytes)int[source]
PIL._binary.o16be(i:int)bytes[source]
PIL._binary.o16le(i:int)bytes[source]
PIL._binary.o32be(i:int)bytes[source]
PIL._binary.o32le(i:int)bytes[source]
PIL._binary.o8(i:int)bytes[source]
PIL._binary.si16be(c:bytes,o:int=0)int[source]

Converts a 2-bytes (16 bits) string to a signed integer, big endian.

Parameters:
  • c – string containing bytes to convert

  • o – offset of bytes to convert in string

PIL._binary.si16le(c:bytes,o:int=0)int[source]

Converts a 2-bytes (16 bits) string to a signed integer.

Parameters:
  • c – string containing bytes to convert

  • o – offset of bytes to convert in string

PIL._binary.si32be(c:bytes,o:int=0)int[source]

Converts a 4-bytes (32 bits) string to a signed integer, big endian.

Parameters:
  • c – string containing bytes to convert

  • o – offset of bytes to convert in string

PIL._binary.si32le(c:bytes,o:int=0)int[source]

Converts a 4-bytes (32 bits) string to a signed integer.

Parameters:
  • c – string containing bytes to convert

  • o – offset of bytes to convert in string

_deprecate module

PIL._deprecate.deprecate(deprecated:str,when:int|None,replacement:str|None=None,*,action:str|None=None,plural:bool=False,stacklevel:int=3)None[source]

Deprecations helper.

Parameters:
  • deprecated – Name of thing to be deprecated.

  • when – Pillow major version to be removed in.

  • replacement – Name of replacement.

  • action – Instead of “replacement”, give a custom call to actione.g. “Upgrade to new thing”.

  • plural – if the deprecated thing is plural, needing “are” instead of “is”.

Usually of the form:

“[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).Use [replacement] instead.”

You can leave out the replacement sentence:

“[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd)”

Or with another call to action:

“[deprecated] is deprecated and will be removed in Pillow [when] (yyyy-mm-dd).[action].”

_tkinter_finder module

Find compiled module linking to Tcl / Tk libraries

_typing module

Provides a convenient way to import type hints that are not availableon some Python versions.

classPIL._typing.Buffer[source]

Typing alias.

classPIL._typing.IntegralLike

Typing alias.

classPIL._typing.NumpyArray

Typing alias.

classPIL._typing.StrOrBytesPath

Typing alias.

classPIL._typing.SupportsRead[source]

An object that supports the read method.

_util module

classPIL._util.DeferredError(ex:BaseException)[source]

Bases:object

staticnew(ex:BaseException)Any[source]

Creates an object that raises the wrapped exceptionex when used,and casts it toAny type.

PIL._util.is_path(f:Any)TypeGuard[StrOrBytesPath][source]

_version module

PIL._version.__version__:str

This is the master version number for Pillow,all other uses reference this module.

PIL.Image.core module

An internal interface module previously known as_imaging,implemented in_imaging.c.

classPIL.Image.core.ImagingCore

A representation of the image data.

On this page

[8]ページ先頭

©2009-2025 Movatter.jp