Transparency/Alpha Channel for add-in button icons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can someone explain to me how transparency works for the "StandardIcon" and "LargeIcon" for a ButtonDefinition? I thought I saw somewhere that Magenta is the alpha channel for Inventor button icons; however, I have a command that appears in a context menu, and its icon has some pure-white areas, and those areas are being made transparent (the same color as the context menu), and it looks bad.
I can work around this by setting them to slightly off-white, but I'd like to get a better understanding of why this is happening.
So two questions:
- Is there a way to have part of a ButtonDefinition icon be pure-white but not be made transparent?
- If I did want an area of my icon to be transparent, how would I go about doing that?
In case it matters, my icons are PNG image files that are being converted to IPictureDisp at run-time for usage by the ButtonDefinition.
@jason_hetu, I was hoping you would be willing to weigh in with your expertise here. Appreciate any assistance!