|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Ulrich Heinicke
|
Sep 12, 2007 - 5:19 AM
|
I load a png file with following code into a ribbon node: CExtSkinBitmap m_bmpNew; LPCTSTR strPngImageResourceID; LPCTSTR strPngResourceSection; strPngImageResourceID = MAKEINTRESOURCE(IDR_FILENEW); strPngResourceSection = _T("PNG"); HINSTANCE hInst = ::AfxFindResourceHandle( strPngImageResourceID, strPngResourceSection ); ASSERT( hInst ); HRSRC hRsrc = ::FindResource(hInst, strPngImageResourceID, strPngResourceSection ); ASSERT(hRsrc); m_bmpNew.LoadPNG_Resource(hInst, hRsrc); pNodeFileNew->m_iconBig.m_bmpNormal = m_bmpNew; I want to use the color RGB(255, 0, 255) as transparent color, how can i do this ? Thanks Ulrich
|
|
Technical Support
|
Sep 12, 2007 - 1:04 PM
|
The following code makes the RGB(255,0,255) color transparent in a pNodeFileNew->m_iconBig.m_bmpNormal bitmap: pNodeFileNew->m_iconBig.m_bmpNormal.AdjustAlpha( RGB(255,0,255), RGB(0,0,0), BYTE(0) );
|
|