wx.ArtProvider quality

wxPython 2.4.2.4u on python 2.3.2 on WinXP

I'm trying to build my own wxMessageDialog-a-like from scratch using
wx.Dialog as the base. I'm getting the icon to use in the top left of the
dialog using:

wx.ArtProvider_GetBitmap(wx.ART_INFORMATION)

but while this looks similar to the icon on a wx.MessageDialog with
style=wx.ICON_INFORMATION it is of lower quality (as if it's being scaled up
from a smaller size). You can see the difference in the demo by comparing
the wxMessageBox demo to the wxArtProvider one.

Does anyone know how to get the bitmap at the higher quality as used by the
native dialog? (It would be nice if there was a wx answer but I could live
with a pointer toward a win32 specific one)

Many thanks,

Rich
------- Important Disclaimer follows -------
The information in this email and any attachments is confidential and is
solely for the attention of the addressee. It must not be disclosed to any
third party without our prior authority. Any figures or financial data are
for informational purposes only and are not intended as an offer for
purchase or sale of any security. If you are not the intended recipient,
please telephone +44 (20) 7594 4000 immediately.

Richard Cooper wrote:

wxPython 2.4.2.4u on python 2.3.2 on WinXP

I'm trying to build my own wxMessageDialog-a-like from scratch using
wx.Dialog as the base. I'm getting the icon to use in the top left of the
dialog using:

wx.ArtProvider_GetBitmap(wx.ART_INFORMATION)

but while this looks similar to the icon on a wx.MessageDialog with
style=wx.ICON_INFORMATION it is of lower quality (as if it's being scaled up
from a smaller size). You can see the difference in the demo by comparing
the wxMessageBox demo to the wxArtProvider one.

What size image are you requesting and what size are you drawing it as? I've noticed that there is some crud around the edges of the image content on XP, that is turned into the shadow on the native dialog. It's probably some alpha blending info that is just getting converted to a flat mask in wxArtProvider someplace. (Other than that, the rest of the 32x32 image looks okay.)

Vaclav, have you seen this?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

It's probably some alpha blending info that is just getting
converted to a flat mask in wxArtProvider someplace. (Other than
that, the rest of the 32x32 image looks okay.)

Vaclav, have you seen this?

No, but I'll have a look (not sure if we can [easily] do anything
about it, though).

VS

···

--
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x465264C9