wxBitmapRefData();
virtual ~wxBitmapRefData();
+ virtual bool IsOk() const { return m_bitmap != NULL; }
+
int m_width;
int m_height;
int m_bpp;
delete bdc;
}
-bool wxBitmap::IsOk() const
-{
- return (m_refData != NULL && M_BMPDATA->m_bitmap != NULL);
-}
-
int wxBitmap::GetHeight() const
{
wxCHECK_MSG( Ok(), -1, wxT("invalid bitmap") );
int w = bitmap->GetWidth(),
h = bitmap->GetHeight();
- mem.SelectObject(*bitmap);
+ mem.SelectObjectAsSource(*bitmap);
tdc = mem.GetMGLDC();
switch (type)