Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
ImagePanel.h
1#ifndef IMAGEPANEL_H
2#define IMAGEPANEL_H
3
4#include <wx/wx.h>
5#include <wx/sizer.h>
6
7// This class can be used to display an image. It can be scaled with parameter <size> and rotated with <rotation> (in radian)
8class ImagePanel : public wxPanel
9{
10 wxImage _image;
11 wxBitmap _bitmap;
12
13 double _rotation;
14
15 int _width;
16 int _height;
17
18public:
19 ImagePanel(wxWindow* parent, wxString file, wxBitmapType format, wxPoint position = wxDefaultPosition, wxSize size = wxDefaultSize, double rotation = 0.0);
20
21 void paintEvent(wxPaintEvent& event);
22 void onSize(wxSizeEvent& event);
23};
24
25#endif // IMAGEPANEL_H
Definition ImagePanel.h:9