cancel
Showing results for 
Search instead for 
Did you mean: 

Missing PNG support in STemWin?

Peter Olsson
Associate III
Posted on October 13, 2017 at 09:20

Hello,

According to the documentation, STemWin includes support for PNG. However, it is not compiled into the libraries. Is this a known issue? Are there any plans to support PNG in the future?

We're running on STM32F7, using the libraries from Cube firmware 1.8.0.

Regards,

Peter Olsson

#png #stemwin
2 REPLIES 2
Amel NASRI
ST Employee
Posted on October 16, 2017 at 14:19

Hi

peter.olsson

‌,

Yes, the PNG format is supported by STemWin.

But you need to download the PNG library and include it in your package first. Otherwise, you will face a compilation error when calling PNG APIs.

The PNG library can be downloaded from SEGGER site: www.segger.com/link/emwin_png.zip, and the original version of the library is available under

http://www.libpng.org

.

This is a summary of the steps to follow:

  • Download the PNG library from

    http://www.segger.com/link/emwin_png.zip

  • Link the library to the project
  • Convert the png file to C file using BMPCvt or Bin2C tools
  • Use PNG APIs to decode and display the png files

All details on how to use the PNG file with the STemWin library may be found in the STemWin user guide located under .STM32Cube_FW_F7_V1.8.0\Middlewares\ST\STemWin\Documentation (section 'PNG file support').

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

AvaTar
Lead
Posted on October 16, 2017 at 14:33

AFAIR, the PNG file format supports several compression methods internally.

Not sure if STemWin supports all of them.