Loading image onto MenuItem is losing transparency on pre-multiplied alpha image
问题 I am really in need of some help here. I am trying to load an image which I believe to be 32bpp with pre-multiplied alpha onto a MenuItem (I followed this guide to make the image in GIMP). I am aware of the ContextMenuStrip class and do not want to use it. The following is the code I am using to set the image onto the MenuItem: // apis [DllImport("user32.dll", SetLastError = true)] static extern bool SetMenuItemInfo(IntPtr hMenu, uint uItem, bool fByPosition, [In] ref MENUITEMINFO lpmii);