Get colored image from wxClientDC::Blit() on Mac

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
lester
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 211
Joined: Sat Sep 02, 2006 7:24 pm
Location: Ukraine

Get colored image from wxClientDC::Blit() on Mac

Post by lester »

I have one problem:

Code: Select all

wxBitmap tBitmap( tSize.GetWidth(), tSize.GetHeight() );
wxMemoryDC tDC( tBitmap )
wxClientDC tDC2( t_pParentWX );
tDC.Blit( 0, 0, tSize.GetWidth(), tSize.GetHeight(), &tDC2, 0, 0 );
tDC.SelectObject( wxNullBitmap );
After this I have in tBitmap greyscale image, how I can get color image?[/code]
Post Reply