• sales

    +86-0755-88291180

Image extraction User Guide

Image extraction

Introduction

When developing embedded microcontrollers, it is necessary to use LCD/OLED to display an image. The most direct and simple way is to use the corresponding tools to convert the image into corresponding data points (actually a 2D array), and then use the corresponding code to display the array on the LCD/OLED display screen according to a certain timing.

Operation Steps

1. Click to download Image2Lcd tool
2. Double-click to enter the tool interface

3. Open the image to be extracted (taking the image of the 1.47inch LCD Module as an example)

  • Parameter setting
Output data type: C array (*.c)
Scanning mode: Vertical scan
Output grayscale: 16-bit true color
Maximum width and height (depending on the actual aspect ratio of the image): 172x320
Output image adjustment: Default settings are fine, check the box for color inversion if needed
Click 16-bit color: color bits RGB565, color data arrangement RGB


4. Set the parameters and then choose Save

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


  • Copy it to the Image.c file


  • And declare it in Image.h


  • Finally call it in the main function, then map to the screen


Effect Demonstration


TAG: Raspberry Pi CM5 Compute Module 5 Dual Gigabit Ethernet RJ45 Expansion IO Base Board Raspberry Pi 5 Audio STM32 1.5inch LCD Raspberry Pi MLX90640 ESP32-S3R2 Raspberry Pi 5 Industrial Modbus POE ETH RJ45 To 8-Ch Relay B RTU/Modbus TCP-Ethernet For IOT Raspberry Pi Compute Module 4 CM4 PCIe to M.2 NVMe SSD Raspberry Pi Pico Display R7FA4 PLUS B Development Board Based on R7FA4M1AB3CFM Compatible with Arduino UNO For R4 WiFi Raspberry Pi 7.5 inch e-Paper link (H) RYBW 800x480 For Arduino / Jetson Nano / STM32 0.99inch ESP32-S3N8R8 7inch LCD Display TouchScreen 800×480 WiFi Bluetooth CAN RS485 Sensor Raspberry Pi 0.96inch LCD ESP32 S3 3.5 inch LCD Development Board 480x320 Display Capacitive TouchScreen Tablet /MP3 Video /Weather Clock LVGL For Arduino MiniPCIe Interface 2 CH CAN Card USB CAN Multiple Protection Circuits For Linux/Windows USB To CAN Raspberry Pi Pico RP2040 1.69 inch TouchScreen Round LCD Display With QMI8658/Buzzer/RTC For Arduino ESP32 Development Board WiFi+Bluetooth Ultra Low Power Dual Core ESP 32S ESP 32 Similar ESP8266 Raspberry Pi Pico 2 Plus RP2350 Board RP2350A