How do I set the transparency color for bitmap loaded into a TTMSFMXSpeedbutton?
Thanks for the reply, I was expecting something simpler possibly. I notice that TImage has a MultiResBitmap property which allows the transparency color to be set and I know that works. Is there any any to gain access programmatically to that facility? I am constructing a tool bar of buttons and need to set the transparency for each one.
PS The code you gave definitely works, I just tried it, just wondering is there is a more elegant way. On VCL its trivial, just set the transparency color.
The internally used component is a TTMSFMXBitmap.
"TMSFMXSpeedButton1.GetImage.Opacity := 0.5;" doesn't work for me because it dimms the entire image and the transparency color is still visible though also dimmed. For now I'll use your original solution but this might be a feature you might want to include in a future revision, transparency for bitmaps in buttons is a common need.