Mar 22, 2013 at 7:08 PM
Edited Mar 22, 2013 at 7:09 PM
I was wondering what is the best way to use custom image with transparency on a button.
I don't want to use one of predefined faces in Office package. I need to use my custom one.
Currently I'm using PictureDispConverter approach. However this solution has dependency on stdole.dll because of setting the button.Picture and button.Mask properties. I believe I can't remove the dependency while using this approach.
I tried using button.PasteFace() approach in which case I can remove dependency on stdole.dll. However I did not find way of how to preserve transparency in the image. The image was always placed on gray non-transparent background as can be seen here:
. I tried using PNG, Bitmap and Icon objects, always with the very same result.
Is there a way how to set image with transparency (alpha channel) which does not depend on stdole.dll?
(NOTE: My problem is related to classic UI of the Office suite.)