Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tft.image() does not respect setwin() #338

Open
callimero opened this issue Sep 16, 2022 · 0 comments
Open

tft.image() does not respect setwin() #338

callimero opened this issue Sep 16, 2022 · 0 comments

Comments

@callimero
Copy link

callimero commented Sep 16, 2022

Lines are nicely drawn respecting the setwin() numbers (ST7789 with a TTGO Display 240x135 which needs the setwin to stay mentally sane)

tft.image() does not respect the setting.

tft.setwin(40, 52, 279, 186)
tft.savewin()
tft.image(0, 0, 'assets/Egghead_headG.jpg' )      # shifted out of screen
tft.image(40, 52, 'assets/Egghead_headG.jpg' )  # manual with numbers from setwin, all visible
tft.line(0, 0, 100, 100, 0xFFFFFF)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant