• sales

    +86-0755-88291180

Image Extraction

Introduction

When developing an embedded microcontroller, you need to use LCD/OLED to display a picture. The most direct and simple way is to use corresponding tools to convert the picture into corresponding data points (actually a 2-dimensional array), and then you can use the corresponding code to display the array on the LCD/OLED display by sequence.

Steps

1. Click Image2Lcd2.9.zip to download the tool.
2. Double-click to enter the interface.

3. Open the image that needs to be extracted. (Here we take a 1.47inch LCD Module as an example.)

  • Parameter setting
Output data type: C array (*.c)
Scan mode: vertical
Output grayscale: 16-bit true color
Maximum width and height (set according to the actual aspect ratio of the image): 172x320
Output image adjustment: the default setting is fine, if you need color inversion, check Color Inversion
Click 16-bit color: color bits -> RGB565, order of colors -> RGB


4. Save the setting.

  • The path and name are set by the user.
  • The file type is .c file.
  • After saving, an array will be generated, after ctrl+A selects all:


  • Copy it to the "Image. c" file.


  • In Image. h:


  • Finally, call the main function and map it to the screen.


The effect is shown below:

TAG: Raspberry Pi 5 Serial RP2040 TVBOX Kit Luckfox Pico Ultra And 4inch LCD RGB Captive TouchScreen Display Industrial RS232 to RS485 DeepSeek AI Voice Chat ESP32 S3 Development Board 2.06-inch AMOLED Display 410×502 2.06inch TouchScreen Programmable Watch ESP32 C3 LCD RS485 to RJ45 RP2040 How to Use Product ROS2 Rasperry Pico 2 RP2350 7.3 inch e-Paper Ink Display E6 Full Color Electronic PhotoPainter 800x480 For Calendar/Quotes/Paintings/Posters ESP32 S3 3.5 inch LCD Development Board 480x320 Display Capacitive TouchScreen Tablet /MP3 Video /Weather Clock LVGL For Arduino ESP32 S3 Development Board 2.8 inch B LCD 2.8inch Display 480x640 TouchScreen QMI8658 Sensor / Battery Port LVGL/HMI For Arduino RS232/485/422 To CAN PC Secondary Screen Spotpear ESP32-S3 3.49-inch Development Board DeepSeek AI Chat Box 3.49inch LCD Capacitive TouchScreen Display 172×640 N16R8 XIAO RA4M1 Tiny SuperMini Board For Arduino Uno IDE For SeeedStudio R7FA4M1 DC-DC Step-Down Mini voltage Moudle Input 5~36V voltage Output 5V/3.3V 4A RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel X1200 Raspberry Pi 5 UPS Board Uninterruptible Power Supply For 18650-Li-Battery (NOT includ)