[wx-dev] Re: png-bug
Steven Van Ingelgem
steven at vaningelgem.be
Fri May 2 01:31:13 PDT 2008
Hey Christian,
I just checked your "logo128" in the "controls" sample.
Everything looks fine. This has been done with wx/53295 + VS2005Std +
Win XP/SP2.
This is the patch:
Index: controls.cpp
===================================================================
--- controls.cpp (revision 53295)
+++ controls.cpp (working copy)
@@ -394,6 +394,8 @@
if ( !wxApp::OnInit() )
return false;
+ wxInitAllImageHandlers();
+
// parse the cmd line
int x = 50,
y = 50;
@@ -982,6 +984,7 @@
#if defined(__WXMSW__) || defined(__WXMOTIF__)
// test for masked bitmap display
bitmap = wxBitmap(_T("test2.bmp"), wxBITMAP_TYPE_BMP);
+ bitmap = wxBitmap("c:\\logo128.png", wxBITMAP_TYPE_PNG);
if (bitmap.Ok())
{
bitmap.SetMask(new wxMask(bitmap, *wxBLUE));
On 02/05/2008, Christian Buhtz <exsudat at gmx.de> wrote:
> Steven Van Ingelgem schrieb:
>
> > Could you provide me with a PNG as exported from Inkscape? Better not
> > to post to the wx list, but just provide a link to one.
> >
>
> <ftp://ftp.berlios.de/pub/blackfisk/logo128.png>
> <ftp://ftp.berlios.de/pub/blackfisk/task_ar.png>
>
>
> _______________________________________________
> wx-dev mailing list
> wx-dev at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-dev
>
More information about the wx-dev
mailing list