Added wxQuantize, wxSplashScreen, wxEffects & added palette to wxImage

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-07-28 17:53:25 +00:00
parent cbb4b02f09
commit 3f4fc7967b
15 changed files with 2138 additions and 0 deletions

View File

@@ -276,6 +276,18 @@ int ReadPCX(wxImage *image, wxInputStream& stream)
*(p++) = pal[3 * index + 1];
*(p++) = pal[3 * index + 2];
}
unsigned char* r = new unsigned char[256];
unsigned char* g = new unsigned char[256];
unsigned char* b = new unsigned char[256];
for (i = 0; i < 256; i++)
{
r[i] = pal[3*i + 0];
g[i] = pal[3*i + 1];
b[i] = pal[3*i + 2];
}
image->SetPalette(wxPalette(256, r, g, b));
delete[] r; delete[] g; delete[] b;
}
return wxPCX_OK;