Lines Matching refs:palette
164 // 8bpp ones. We do that by using a special palette with color 0
355 wxCHECK_RET( mono != NULL, wxT("bitmap w/o palette") );
393 wxFAIL_MSG( wxT("bitmap with this depth cannot have palette") );
441 bool wxBitmap::SaveFile(const wxString& filename, wxBitmapType type, const wxPalette *palette) const
450 if ( palette )
451 image.SetPalette(*palette);
462 return handler->SaveFile(this, filename, type, palette);
472 void wxBitmap::SetPalette(const wxPalette& palette)
475 wxCHECK_RET( GetDepth() > 1 && GetDepth() <= 8, wxT("cannot set palette for bitmap of this depth") );
481 if ( !palette.Ok() ) return;
483 M_BMPDATA->m_palette = new wxPalette(palette);
485 int cnt = palette.GetColoursCount();
486 palette_t *pal = palette.GetMGLpalette_t();
552 int type, const wxPalette *palette = NULL);
643 int type, const wxPalette * WXUNUSED(palette))
770 int type, const wxPalette *palette = NULL);
827 const wxPalette * WXUNUSED(palette))