Lines Matching refs:depth
97 wxBitmap::wxBitmap(int width, int height, int depth)
99 Create(width, height, depth);
110 bool wxBitmap::Create(int width, int height, int depth)
118 int mglDepth = depth;
120 switch ( depth )
146 wxFAIL_MSG(wxT("invalid bitmap depth"));
174 wxBitmap::wxBitmap(const wxImage& image, int depth)
183 if ( !Create(width, height, depth) ) return;
256 wxBitmap::wxBitmap(const char bits[], int width, int height, int depth)
258 wxCHECK_RET( depth == 1, wxT("can only create mono bitmap from XBM data") );
393 wxFAIL_MSG( wxT("bitmap with this depth cannot have palette") );
475 wxCHECK_RET( GetDepth() > 1 && GetDepth() <= 8, wxT("cannot set palette for bitmap of this depth") );
504 void wxBitmap::SetDepth(int depth)
508 M_BMPDATA->m_bpp = depth;
546 int WXUNUSED(depth) = 1)
715 // convert bmp to display's depth and write it to *bitmap:
764 int WXUNUSED(depth) = 1)