| 6 | |
| 7 | |
| 8 | ImagePanel::ImagePanel(wxPanel * parent, wxString file, wxBitmapType format) : |
| 9 | wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE) { |
| 10 | image.LoadFile(file, format); |
| 11 | } |
| 12 | |
| 13 | void ImagePanel::paintEvent(wxPaintEvent & /* evt */) { |
| 14 | wxPaintDC dc(this); |