changeset 3 | b29987bfe7ed |
parent 2 | b2772bffb62f |
2:b2772bffb62f | 3:b29987bfe7ed |
---|---|
40 |
40 |
41 i.Rescale(i.GetWidth()/3, i.GetHeight()/3); |
41 i.Rescale(i.GetWidth()/3, i.GetHeight()/3); |
42 |
42 |
43 _bmp = wxBitmap(i); |
43 _bmp = wxBitmap(i); |
44 SetVirtualSize(_bmp.GetWidth(), _bmp.GetHeight()); |
44 SetVirtualSize(_bmp.GetWidth(), _bmp.GetHeight()); |
45 |
|
46 Refresh(); |
|
45 } |
47 } |
46 |
48 |
47 void wxPictureWindow::OnDraw(wxDC &dc) |
49 void wxPictureWindow::OnDraw(wxDC &dc) |
48 { |
50 { |
49 dc.DrawBitmap(_bmp, 0, 0, false); |
51 dc.DrawBitmap(_bmp, 0, 0, false); |