cancel
Showing results for 
Search instead for 
Did you mean: 

Keyboard without Pngs, draw buttons by code to save memory

PPete
Associate III

Hello,

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

1 ACCEPTED SOLUTION

Accepted Solutions
PPete
Associate III

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

 

View solution in original post

5 REPLIES 5
JTP1
Lead

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
ST Employee

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:

Gaetan Godart
Software engineer at ST (TouchGFX)

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,

Gaetan Godart
Software engineer at ST (TouchGFX)
PPete
Associate III

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

 

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,

Gaetan Godart
Software engineer at ST (TouchGFX)