Hi, Im trying to draw a simple picture and save it to a file in wxwidgets. This is the code i have so far. However this code will never create the test.png picture.
wxBitmap myBitmap;
wxMemoryDC dc;
dc.SelectObject(myBitmap);
wxFont font=dc.GetFont();
font.SetPointSize(15);
dc.SetTextForeground(*wxBLACK);
dc.DrawRectangle(0,0,50,100);
wxString s(_T("A"));
dc.DrawText(s, 5,5);
wxString test(_T("images/test.png"));
myBitmap.SaveFile(test, wxBITMAP_TYPE_PNG);
Can somebody please help me out in what I'm doing wrong... /Mike