Problems displaying BMP images using DFRobot_GDL library.
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
Hi Everyone.
I am trying to load a bmp image to my screen (3.5” IPS capacitive Touchscreen Display) using the following line of code with no success.
decoder.drawPicture(/*filename=*/"test_image.bmp",/*sx=*/0,/*sy=*/0,/*ex=*/screen.width(),/*ey=*/screen.height(),/*screenDrawPixel=*/screenDrawPixel);
This code has come directly from drawSDPicture example in the DFRobot_GDL library. The line of code works just fine when I use any sample image from Adafruit Imagereader Library but when I make my own bmp or get one online it wont write the image. I have no Compile errors and the code loads fine to my Uno.
I have tried a bunch of different ways to save the test image as a bmp ( using paint and online converters), including rescaling the image to be smaller/larger with no change.
Any help would be greatly appreciated. Thanks everyone.
Software download address: https://img.dfrobot.com.cn/wiki/605d8c0caa613609f2707b8d/531a7574f61dd34a98f7856588acf6f2.exe
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
Hi! It is recommended to try to use software to obtain image fonts, add header files, and use them in the code.
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)