Scenario |
Type |
Detail |
Base |
Basic Path |
SmartView is class, that provides framework for drawing more object in one canvas. Every object, that want use SmartView, must contains draw method with parameters (Graphics grfx, int top, int left, int bottom, int right)
Method Add(DrawMethod method, int top, int left, int bottom, int right) add object draw method to list and this method return id of object in SmartView. If Redraw() method is called, all DrawMethod in list will be executed. If there is many object to draw, the better way to redraw object that change his state is use Redraw(int id) method. This method redraw only object with id and all object that overlapped this object.
This class also provides funtions for zooming through properties Zoom.
All object are drawed to Bitmap. After drawing is Bitmap added to PictureBox component. |
|