#11476: wxMSW: wxButton with bitmap and text, bitmap loses alpha channel.
-----------------------------------+----------------------------------------
Reporter: pete_b | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9.0
Keywords: wxButton bitmap alpha | Blockedby:
Patch: 0 | Blocking:
-----------------------------------+----------------------------------------
Using a wxButton with text AND a wxBitmap label on MSW causes bitmap to
lose its alpha channel.
Button is fine if only the bitmap is displayed without text.
If you always use owner draw when the button has a bitmap then its fine.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11476>
#11476: wxMSW: wxButton with bitmap and text, bitmap loses alpha channel.
-----------------------------------+----------------------------------------
Reporter: pete_b | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9.0
Keywords: wxButton bitmap alpha | Blockedby:
Patch: 0 | Blocking:
-----------------------------------+----------------------------------------
Comment(by vadz):
Replying to [ticket:11476 pete_b]:
> Using a wxButton with text AND a wxBitmap label on MSW causes bitmap to
lose its alpha channel.
Do you have an example bitmap showing this (even if this happens with any
bitmaps with alpha it would still be nice to have one for testing)?
> If you always use owner draw when the button has a bitmap then its fine.
Sorry, what do you mean? I.e. how do you "always use owner draw"?
Also, what Windows version do you use? Are themes enabled or not?
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11476#comment:1>
#11476: wxMSW: wxButton with bitmap and text, bitmap loses alpha channel.
-----------------------------------+----------------------------------------
Reporter: pete_b | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 2.9.0
Keywords: wxButton bitmap alpha | Blockedby:
Patch: 0 | Blocking:
-----------------------------------+----------------------------------------
Comment(by pete_b):
Attached image ends up with black outline in areas where alpha channel is
a partial value (where the edges are antialiased).
I've copied wxButtonBase and just removed the usage of wxXPButtonImageData
in DoGetBitmap() and it works.
I'm using winxp sp2.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/11476#comment:2>