]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
Merge pull request #76 from FoamyGuy/odb_pixel_shader
authorMelissa LeBlanc-Williams <melissa@adafruit.com>
Mon, 20 Dec 2021 15:51:24 +0000 (07:51 -0800)
committerGitHub <noreply@github.com>
Mon, 20 Dec 2021 15:51:24 +0000 (07:51 -0800)
OnDiskBitmap.pixel_shader implementation

displayio/_ondiskbitmap.py

index 2c4804360f9ec0d83928382f182808dc60129f11..c052bcb2a71595ae4fe20e5de3bc3e7cdf647335 100644 (file)
@@ -47,8 +47,8 @@ class OnDiskBitmap:
 
     @property
     def pixel_shader(self) -> Union[ColorConverter, Palette]:
-        """Height of the bitmap. (read only)"""
-        return self._image.height
+        """The ColorConverter or Palette for this image. (read only)"""
+        return self._image.getpalette()
 
     def __getitem__(self, index: Union[tuple, list, int]) -> int:
         """