Disable Mosaic in the imgbtn


I was wondering how we can show an image in the imgbtn where btn is larger than image. I don’t want the image is repeated ( want to disable Mosaic ) .

What MCU/Processor/Board and compiler are you using?


What do you want to achieve?

I need the image is displayed in the middle of the btn when image is smaller than the object size.

You can simply create a button and and an image on it.
The image won’t be repeated if the image object’s size is the same as the image source’s size (it will be set like this by default.)

But maybe I misunderstood something. Please a send code snippet to show what and how have you tried so far.