• 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: 0.49inch OLED Screen Display 64×32 SSD1315 Arduino Raspberry Pi ESP32 Pico STM32 7.5 inch Passive NFC e-Paper V2 BW Display 7.5inch E-ink Screen No Need Battery Wireless Powered Data Transfer For Mobile APP X1006 Raspberry Pi 5 PCIe To 2.5 SATA And M.2 KEY-B 2280 SSD/HDD Double-SATA (NOT BOOT From SATA/SSD Zero LCD HAT (A) user guide Industrial Isolated USB TO 4CH RS485 (B) Converter UART CH344L For Wall/Rail-Mount 360° Industrial Modbus POE ETH RJ45 To Relay 30CH RTU/Modbus TCP-Ethernet For IOT Jetson Orin Nano UGV Beast PT ROS2 AI OpenCV Robot Car MediaPipe Luckfox Pico Camera User Guide LuckFox Pico UART Programmable Keyboard BPI-M4 Zero Round Rotary LCD touch screen 1.28inch 1.6inch 2.1inch Knob central control lighting LCD AI Board ESP32 Portable Pendant FT232RNL USB TO TTL Industrial UART (C) User Guide X1008 Raspberry Pi 5 PCIe to 2.5" 3.5" SATA HDD/SSD Dual Double-SATA (NOT BOOT From SATA/SSD ESP32 S3 4.3inch LCD (B) 800x480 Captive TouchScreen Display Board LVGL with Sensor CAN I2C RS485 ADXL354C Dev Board DeepSeek XiaoZhi AI Voice Chat Robot BOX ESP32-S3 Development Board 3.5 inch LCD N16R8 Touchscreen Display 6-Axis /Camera /SD