TftBmpFromMemName(sFileName As String * 12, wX_Pos As Word, wY_Pos As Word), Byte
sFileName: The file name in memory to print, with a maximum length of 12 characters, including the dot and file extension.
wX_Pos: The X position for the lower-left corner of the image to print.
wY_Pos: The Y position for the lower-left corner of the image to print.
Result Byte:
• 1: File found
• 0: No file found
This procedure prints a BMP file stored in flash memory, which was written using TftBmpSdToMem().
The file is referenced by its name and extension from the flash memory.
Example:
TftBmpFromMemName("PIC001.BMP",20,30)
Note: There is no image processing, so the BMP file must meet the following criteria:
• The image must be smaller than the screen's width and height.
• The color depth must be 16-bit RGB (565).
• The row direction should be from bottom to top (default).
• The image should not be compressed.
You can use online tools to convert the file, such as: https://online-converting.com/image/convert2bmp/#.
Select the correct format, upload your image, and download the converted file.
Alternatively, you can use the SdCardWriteRGB565 tool provided in the library.
Created with the Personal Edition of HelpNDoc: Effortlessly Edit and Export Markdown Documents