• 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: ESP32 Google Dinosaur game Step Recording and Reproduction Raspberry Pi Pico 2 RP2350 2.8 inch LCD Capacitive TouchScreen Development Board 240x320 Display QMI8658 6-Axis /PCM5101 Audio /SD /RTC /Battery Port Digital Photo Frames STM32 0.96inch RGB OLED Sipeed FPGA Tang Primer 20K Dock/Lite 128M DDR3 Development Board GW2A-LV18PG256C8/I7 X1006 Raspberry Pi 5 PCIe To 2.5 SATA And M.2 KEY-B 2280 SSD/HDD Double-SATA (NOT BOOT From SATA/SSD Luckfox Raspberry Pi Pico X1009 Raspberry Pi 5 PCIe To 5-Port SATA SATA3.0 (NOT BOOT From SATA) Raspberry Pi PICO LoRa X1002 Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Pi5 2280 Raspberry Pi 5 PCIe TO Gigabit RJ45 ETH Adapter Board (C) Driver-Free RTL8111H For Pi5 Raspberry Pi LCD ESP32 S3 5 inch LCD Development Board 800x480 TouchScreen Display TVBOX LVGL HMI Sensor CAN RS485 lilygo ESP32 Mini TV Core3566004000 Mechanical Keyboard Milk V Duo