@@ -326,19 +326,19 @@ def DisplayPILImage(self, image: Image.Image, x: int = 0, y: int = 0, image_widt
326326 base_image = Image .new ("RGBA" , (self .get_width (), self .get_height ()), (0 , 0 , 0 , 0 ))
327327
328328 for (x , y ), part in self .image_parts .items ():
329- base_image .paste (part , (x , y ), mask = part )
329+ base_image .paste (part , (x , y ))
330330
331331 if self .orientation == Orientation .LANDSCAPE :
332- base_image = base_image .transpose (Image .ROTATE_270 )
332+ base_image = base_image .transpose (Image .Transpose . ROTATE_270 )
333333 elif self .orientation == Orientation .REVERSE_LANDSCAPE :
334- base_image = base_image .transpose (Image .ROTATE_90 )
334+ base_image = base_image .transpose (Image .Transpose . ROTATE_90 )
335335 elif self .orientation == Orientation .PORTRAIT :
336- base_image = base_image .transpose (Image .ROTATE_180 )
336+ base_image = base_image .transpose (Image .Transpose . ROTATE_180 )
337337 elif self .orientation == Orientation .REVERSE_PORTRAIT :
338338 pass
339339
340340 buffer = BytesIO ()
341341 base_image .save (buffer , format = "PNG" )
342342 png_data = buffer .getvalue ()
343343
344- send_image (self .dev , png_data )
344+ send_image (self .dev , png_data )
0 commit comments