Skip to main content
eduardo2
Associate III
August 12, 2014
Question

How to replace icon on STM32 Demonstartion Builder

  • August 12, 2014
  • 14 replies
  • 2507 views
Posted on August 12, 2014 at 22:30

Hi:

I am using STM3221G-EVAL board, with the demosntration builder firmware.

There are multiple icons on the initial screen, and I would like to replace one of those, with one of my own icons. I have tried emWin BmpCvt and LCD Image Converter to get the C code corresponding to the image, without success.

My initial image is a bmp 360x369 pixels, that I have reduced to several sizes but nothing seems to work. The icon is showing at the screen but just streaks.

What is the procedure I have to follow to do this?

Thanks,

#an3128 #emwin #icon #bmpcvt #lcd-image #rgb565 #rgb565 #image-converter
This topic has been closed for replies.

14 replies

Andrew Neil
Super User
August 14, 2014
Posted on August 14, 2014 at 22:01

''Some of the example in ST's code actually have a ''BM''  0x42,0x4D header, whilst others don't''

Yes - the above-mentioned Image Converter from the ST Resource Editor has the option for with/without header.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
August 14, 2014
Posted on August 14, 2014 at 22:06

''Well I'm sure they just did what was quick and convenient''

Indeed.

''At some level people are expected to have some conceptual understanding about what they are working with, and how to identify the formats being used''

I'm talking about the 'C' arrays provided as source in the demo application.

It doesn't take much to describe what they've implemented, and say ''Utilty xyz can be used to convert from whatever image file types''
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
August 14, 2014
Posted on August 14, 2014 at 22:33

It doesn't take much to describe what they've implemented, and say ''Utility xyz can be used to convert from whatever image file types''

Or, for that matter, have the tool fingerprint the comments saying what source file was used, and the command with command line options.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Super User
August 14, 2014
Posted on August 14, 2014 at 23:08

''have the tool fingerprint the comments saying what source file was used, and the command with command line options''

Indeed!
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.