Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - Problem drawing bitmaps with alphachannel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedProblem drawing bitmaps with alphachannel

 Post Reply Post Reply
Author
Message
andolo View Drop Down
Groupie
Groupie
Avatar

Joined: 16 November 2005
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote andolo Quote  Post ReplyReply Direct Link To This Post Topic: Problem drawing bitmaps with alphachannel
    Posted: 27 November 2009 at 10:11am
Hi,

the following problem:

Drawing an image with semi-transparency (using alpha32 bitmaps / png) f.E. from the Styles works fine.
Now i am changing some pixels to RGB values bigger than 0x80.

(f.E. COLOUR1 0x14001E is ok,  COLOUR2 RGB 0xFFCC00 shows wrong colour and no alpha, both with 30% alpha )
The stripe behind the text:  purple colour is ok on the left   right side colour should be a light pink an transparent

I can't properly draw an image containing pixels of COLOUR2 independent of the alpha channel.


remark: using the same image with CImageList::Draw works fine! Problem: I am unable to change the output size.


Am i using the wrong functions?  i use the following code:


// xtptoolkit 13.x
// class inherited from CXTPRibbonTheme -> calling CXTPOffice2007Theme::LoadImage


CXTPOffice2007Image* pImage = CXTPRibbonTheme::LoadImage(_T("RIBBONTABBACKGROUNDDWM"));         
pImage->DrawImage(pDC, rcDest, pImage->GetSource());
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.143 seconds.