Skip to main content
PPete
Associate III
February 13, 2024
Solved

Keyboard without Pngs, draw buttons by code to save memory

  • February 13, 2024
  • 3 replies
  • 1828 views

Hello,

will you build a keyboard without Pngs to save space , in the future?

This topic has been closed for replies.
Best answer by PPete

I build my own Numpad Container with flexbuttons to save even more Flash :)

 

3 replies

Graduate II
February 13, 2024

Hello

Do you mean this example custom widget ?

JTP1_0-1707847172610.png

https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/share-your-custom-widgets/td-p/67889

Flash memory footprint of png images seems quite small to me.

Br JTP

GaetanGodart
Technical Moderator
February 20, 2024

Hello @PPete 

 

If one of the comments helped you, could you select it as best answer to help people with the same question as you and to allow us to close this ticket?

 

Regards,

GaetanGodart
Technical Moderator
February 15, 2024

Hello @PPete ,

 

It is not planned to create a keyboard without PNG in the future.

However, you could greatly limit the size of the images by changing the image format to L8_RGB565 (or another L8 format) and setting the compression to auto :

GaetanGodart_2-1707995733803.png

You can set the default image format and compression (this will change the image format and compression for all the images of your project added after that change) from your project's settings :

GaetanGodart_4-1707995878966.png

 

Hope this helps.
Don’t hesitate to give us a feedback or give more precisions and tell us if the issue is solved! :smiling_face_with_smiling_eyes:

PPete
PPeteAuthorBest answer
Associate III
February 20, 2024

I build my own Numpad Container with flexbuttons to save even more Flash :)

 

GaetanGodart
Technical Moderator
February 21, 2024

Hello @PPete ,

 

I am glad you found a solution that suits you.

Could you please select a best answer so we can close this thread?

 

Regards,