Move from deprecated getdata to get_flattened_data
This commit is contained in:
parent
0a1d6c3c61
commit
555fb8371c
@ -76,7 +76,7 @@ def testimage() -> None:
|
|||||||
('R', 'G', 'B')
|
('R', 'G', 'B')
|
||||||
>>> im.getbbox()
|
>>> im.getbbox()
|
||||||
(0, 0, 128, 128)
|
(0, 0, 128, 128)
|
||||||
>>> len(im.getdata())
|
>>> len(im.get_flattened_data())
|
||||||
16384
|
16384
|
||||||
>>> im.getextrema()
|
>>> im.getextrema()
|
||||||
((0, 255), (0, 255), (0, 255))
|
((0, 255), (0, 255), (0, 255))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user