mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Updated example decoders [ci skip]
This commit is contained in:
parent
0adeb82e98
commit
cea6ecfdbb
|
@ -221,7 +221,7 @@ class DdsImageFile(ImageFile.ImageFile):
|
||||||
header = BytesIO(header_bytes)
|
header = BytesIO(header_bytes)
|
||||||
|
|
||||||
flags, height, width = struct.unpack("<3I", header.read(12))
|
flags, height, width = struct.unpack("<3I", header.read(12))
|
||||||
self.size = (width, height)
|
self._size = (width, height)
|
||||||
self.mode = "RGBA"
|
self.mode = "RGBA"
|
||||||
|
|
||||||
pitch, depth, mipmaps = struct.unpack("<3I", header.read(12))
|
pitch, depth, mipmaps = struct.unpack("<3I", header.read(12))
|
||||||
|
|
|
@ -69,7 +69,7 @@ true color.
|
||||||
header = string.split(header)
|
header = string.split(header)
|
||||||
|
|
||||||
# size in pixels (width, height)
|
# size in pixels (width, height)
|
||||||
self.size = int(header[1]), int(header[2])
|
self._size = int(header[1]), int(header[2])
|
||||||
|
|
||||||
# mode setting
|
# mode setting
|
||||||
bits = int(header[3])
|
bits = int(header[3])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user