git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66589
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxImage expected8 = expected24.ConvertToGreyscale();
numColours = expected8.CountColours();
wxImage expected8 = expected24.ConvertToGreyscale();
numColours = expected8.CountColours();
unsigned char greys[256];
for (i = 0; i < 256; ++i)
{
unsigned char greys[256];
for (i = 0; i < 256; ++i)
{
}
wxPalette palette(256, greys, greys, greys);
expected8.SetPalette(palette);
}
wxPalette palette(256, greys, greys, greys);
expected8.SetPalette(palette);
+#endif // #if wxUSE_PALETTE
+
expected8.SetOption(wxIMAGE_OPTION_BMP_FORMAT, wxBMP_8BPP_PALETTE);
// Create an image with alpha based on the loaded image
expected8.SetOption(wxIMAGE_OPTION_BMP_FORMAT, wxBMP_8BPP_PALETTE);
// Create an image with alpha based on the loaded image
expected8.LoadFile("horse.gif");
CPPUNIT_ASSERT( expected8.IsOk() );
expected8.LoadFile("horse.gif");
CPPUNIT_ASSERT( expected8.IsOk() );
CPPUNIT_ASSERT( expected8.HasPalette() );
CPPUNIT_ASSERT( expected8.HasPalette() );
+#endif // #if wxUSE_PALETTE