Visual Studio 2010 - C++ MFC application with Ribbon UI - Transparency in bitmaps -
i playing around small mfc-wizard-generated application, in visual c++ 2010, , decided put own bitmap resources replace three-cubes mfc bitmap shows in ribbon ui application button, aka "marble".
the original appeared use black (0,0,0) transparency color, unable determine mfc ribbon (mfc-feature-pack stuff) stuff in visual studio 2010 determine transparency on bitmap used ribbon's main icon.
the properties of ribbon (idr_ribbon) show image=idb_main, , idb_main 32x32 bitmap in bmp format, loaded disk file called main.bmp.
some of bitmap resources in project have looks expect: magenta color becomes transparent, mfc main bitmap did not use color scheme or palette.
here example of actual results, hope show results not wanted:
incidentally, not seem possible use icon resource in application button, little mystified how pull off transparency in it.
translucent png, perhaps? did know bmp files can have alpha channels?
Comments
Post a Comment