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; }
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(); }
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 }; }