You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When rendering PNGs with alpha values the image is corrupted and most of it turns black. It appears to me that the ReadRect call is reading incorrect pixel data from the screen which causes incorrect pixel blending. If I disable the readable flag in the configuration, the image is rendered correctly, albeit without proper transparency settings making the image a bit rigid around the edges (blurring negated).
Expected Behavior ( 期待される動作 )
Properly renders PNGs with alphas values and shows smooth images when readable is true.
Actual Behavior ( 実際の動作 )
Image is corrupted with black pixels when readable is true
Steps to reproduce ( 再現のための前提条件 )
MCU Schematics LCD & Touch Schematics
Issue when readable is true Working when readable is false (albeit not as smooth without alpha blending)
When seeing a custom board it's tempting to say any problem is caused by bad wiring or bad routing, so the obvious question is: does this issue happen on a breadboard too, and does it persist when non-panel components (touch, sdcard) are disabled?
I strongly recommend you create a sketch for that, to test readRect() and readRectRGB() with a 10x10 square, and only doing this, no sdcard, no touch, no TFT_ESPI macros for pins assignment, no leftovers of your app, nothing else.
If the problem still exists in those conditions, then I can help with troubleshooting.
Environment ( 実行環境 )
Problem Description ( 問題の内容 )
When rendering PNGs with alpha values the image is corrupted and most of it turns black. It appears to me that the ReadRect call is reading incorrect pixel data from the screen which causes incorrect pixel blending. If I disable the readable flag in the configuration, the image is rendered correctly, albeit without proper transparency settings making the image a bit rigid around the edges (blurring negated).
Expected Behavior ( 期待される動作 )
Properly renders PNGs with alphas values and shows smooth images when
readable
is true.Actual Behavior ( 実際の動作 )
Image is corrupted with black pixels when
readable
is trueSteps to reproduce ( 再現のための前提条件 )
MCU Schematics
LCD & Touch Schematics
Issue when readable is true
Working when readable is false (albeit not as smooth without alpha blending)
Code to reproduce this issue ( 再現させるためのコード )
board.h
lcd.h
lcd.cpp
main.ino
The text was updated successfully, but these errors were encountered: