adafruit / Adafruit_CircuitPython_framebuf

CircuitPython framebuf module, based on the Python framebuf module
MIT License
39 stars 36 forks source link

Fix image function when display rotated 90 or 270 degrees #33

Closed jsharper closed 4 years ago

jsharper commented 4 years ago

I'm not sure if this is the best way or place to fix this. Feel free to close/reject if there's a better way.

Without this change, I was unable to properly use the image function to draw a PIL image when a non-square display was set to 90 or 270 degree rotation. This change allows the passed image to match the effective resolution of the rotated display, allowing the entire image to be displayed (rotated appropriately).

dhalbert commented 4 years ago

Discussion in #help-with-circuitpython 2020-09-07 starting 3:19pm ET.

jsharper commented 4 years ago

Note: my development and testing was on a rpi with blinka and some 128x64 SSD1306 OLED displays.