I am trying to use PNG images as Toolbar icons. I am currently reading them with imread
an set the corresponding CData
value.
Now I have some images with transparency. There is no alpha channel (I found some threads with solutions for that), but I get some kind of "Simple Transparency". The imfread
function returns "simple" for the Transparency
field and a vector of values between 0 and 1 for the SimpleTransparencyData
field.
I couldn't find any information about this transparency type neither in the Matlab help nor the internet. So I would like to know if it is possible to show the transparent image in the toolbar directly, or if not how to composite the transparent values with the toolbar's background color.