コード例 #1
0
ファイル: Drawer.cs プロジェクト: GarrusEn/IJunior
 public Drawer(PointManager Points, Palette Palette, Canvas Canvas)
 {
     _points  = Points;
     _palette = Palette;
     _canvas  = new Bitmap((int)Canvas.GetWidth(), (int)Canvas.GetHeight());
     _drawer  = Graphics.FromImage(_canvas);
     _drawer.FillRectangle(Brushes.White, new Rectangle(0, 0, (int)Canvas.GetWidth(), (int)Canvas.GetHeight()));
 }
コード例 #2
0
ファイル: DrawManager.cs プロジェクト: GarrusEn/IJunior
 protected DrawManager(float CanvasHeigh, float CanvasWidth)
 {
     _canvas  = new Canvas(CanvasHeigh, CanvasWidth);
     _points  = new PointManager(_canvas);
     _palette = new Palette();
 }