cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with widgets from monochrome Framebuffer

niklasgro
Associate II

I have a monochrome display and use the framebuffer B/W with one bit per pixel. With the framebuffer and the TouchGFX Designer I can display text, but I have problems with small black and white images or e.g. a progress bar. Either only a black block or a black block with white highlights is displayed. But nothing usable. Has anyone had a similar problem and found a workaround?

1 ACCEPTED SOLUTION

Accepted Solutions
JTP1
Lead

Hi Niklas

Nice to hear you've made progress.

About the widgets, have you already try to decrease color depth of png images used in buttons, slider etc with some image processing sw (like IrfanView) to 1 bit ?  I suppose that might help.

Br JTP

View solution in original post

7 REPLIES 7

Hello @niklasgro ,

Could please provide more information about the settings you are using in you STM32CubeMX project? Especially, the settings for the display and TouchGFX. 

It would also be very nice if you can upload a picture of the board, so we can have a visual understanding of what is going on. 

Thank you

Mohammad MORADI
ST Software Developer | TouchGFX

Hello, you find attached the pictures of the designer and the display. Also from the TouchGFX settings. Are there any other options for making settings?

 

Thanks and best regards

Niklas

Does someone has an Idea what i did wrong? The important Part for me is to display Pictures like the following.

test_picture.png

It´s a .png File. 

Thanks :smiling_face_with_smiling_eyes:

Hello

What about your image file format, is it also with 1 bit color ? Can your share the arrow png ?

Br JTP

 

Hello, i checked it again and the problem was the transparent background. With white background its working without problems. 

Thanks for your answer!

Do you have any idea for the touchgfx widgets? Maybe theres some way to turn them in monochrome but i didnt found anything yet...

JTP1
Lead

Hi Niklas

Nice to hear you've made progress.

About the widgets, have you already try to decrease color depth of png images used in buttons, slider etc with some image processing sw (like IrfanView) to 1 bit ?  I suppose that might help.

Br JTP

Hi. I've loaded my own black and white images for e.g. a Button and now it is displayed as it should. Thanks for your help :smiling_face_with_smiling_eyes: