Example #1
0
 public PenTool()
 {
     Cursor              = Cursors.Pen;
     ActionDisplay       = "Click and move to draw.";
     Tooltip             = "Standard brush. (B)";
     Toolbar             = new PenToolbar();
     toolSizeSetting     = Toolbar.GetSetting <SizeSetting>("ToolSize");
     pixelPerfectSetting = Toolbar.GetSetting <BoolSetting>("PixelPerfectEnabled");
     pixelPerfectSetting.ValueChanged += PixelPerfectSettingValueChanged;
     lineTool = new LineTool();
     ClearPreviewLayerOnEachIteration = false;
 }
Example #2
0
 public PenTool(BitmapManager bitmapManager)
 {
     Cursor              = Cursors.Pen;
     ActionDisplay       = "Click and move to draw.";
     Toolbar             = new PenToolbar();
     toolSizeSetting     = Toolbar.GetSetting <SizeSetting>("ToolSize");
     pixelPerfectSetting = Toolbar.GetSetting <BoolSetting>("PixelPerfectEnabled");
     pixelPerfectSetting.ValueChanged += PixelPerfectSettingValueChanged;
     ClearPreviewLayerOnEachIteration  = false;
     BitmapManager = bitmapManager;
     lineTool      = new LineTool();
 }
Example #3
0
 public PenTool(BitmapManager bitmapManager)
 {
     Cursor              = Cursors.Pen;
     ActionDisplay       = "Click and move to draw.";
     Toolbar             = new PenToolbar();
     toolSizeSetting     = Toolbar.GetSetting <SizeSetting>("ToolSize");
     pixelPerfectSetting = Toolbar.GetSetting <BoolSetting>("PixelPerfectEnabled");
     ClearPreviewLayerOnEachIteration = false;
     BitmapManager   = bitmapManager;
     paint.BlendMode = SKBlendMode.Src;
     Brushes.Add(new CircleBrush());
     Brush    = Brushes[0];
     lineTool = new LineTool
     {
         AutomaticallyResizeCanvas = AutomaticallyResizeCanvas
     };
 }