Hi
Anyone using GUI_PNG_Draw (or _DrawEx)? I am successfully using the BMP, JPG versions but linker fails to find the PNG version. I have checked and it is prototyped in GUI.h.
Is there a different library or option I need to switch on?
Thanks
It seems that you need an add-on for PNG support.
From emWin User Manual:
The emWin implementation of PNG support is based on the libpng library from Glenn Randers-Pehrson, Guy Eric Schalnat and Andreas Dilger which is freely available under http://www.libpng.org. It is used in emWin under the copyright notice in GUI\PNG\png.h which allows using the library without any limitation. The PNG library of emWin is available under www.segger.com/.../emwin_png.zip.
Thanks, greatly appreciated.
Segger: wee suggestions (a) add this info into the GUI.h header next to the PNG protos, (b) put that wording in the manual in the PNG section and (c) add GUI_PNG next to the wording somewhere (as GUI_PNG is what some idiot like me would be searching docs for....)
Mark
Are more likely to be received here: https://segger.com/forum
Or see: https://segger.com/about.html
Or even: twitter.com/SEGGERMicro
Hi!
I have the same problem. I downloaded the mentioned library, included gui\png\png.h to my code, but still I have undefined reference to GUI_PNG_DrawEx() function. Do you have any idea? Are there any restrictions regarding the placing of the png library?
Thanks for your further answer!
Hello Janos, did you add all files from the png library to your project? The function GUI_PNG_DrawEx() is part of this, and it looks like it is just not getting compiled in your project.
Please be aware that you need to increase your emwin memory according to 9.4 "Displaying bitmap files" -> "PNG file support" -> "Memory usage".
Regards, Matthias
Hello Matthias!
Thanks for your answer, now the code compiles. Now the problem is that the GUI_PNG_DrawEx() function returns with 1 and picture is not appearing. I have read that in case of PNG support emwin needs more RAM memory. How can be this requirement supported?
Regards