+ wxCHECK_MSG( source, FALSE, "invalid source dc" );
+
+ /* blit into a bitmap */
+
+ wxBitmap bitmap( fwidth, fheight );
+ wxMemoryDC memDC;
+ memDC.SelectObject(bitmap);
+ memDC.Blit(0, 0, fwidth, fheight, source, xsrc, ysrc, rop); /* TODO: Blit transparently? */
+ memDC.SelectObject(wxNullBitmap);
+
+ /* draw bitmap. scaling and positioning is done there */
+
+ DrawBitmap( bitmap, xdest, ydest );