public void FillPath(IBrushCollection brushCollection, IGraphicsPath path) { foreach (var brush in brushCollection.Brushes) { _canvas?.DrawPath((SKPath)path.EngineElement, GetSKPaint(brush)); } }
public void FillRectangle(IBrushCollection brushCollection, CanvasRectangleF rectangleF) { foreach (var brush in brushCollection.Brushes) { _canvas?.DrawRect(rectangleF.ToSKRect(), GetSKPaint(brush)); } }
public void FillPath(IBrushCollection brushCollection, IGraphicsPath path) { CheckUsability(); foreach (var brush in brushCollection.Brushes) { _graphics.FillPath((Brush)brush.EngineElement, (System.Drawing.Drawing2D.GraphicsPath)path.EngineElement); } }
public void FillRectangle(IBrushCollection brushCollection, CanvasRectangleF rectangleF) { CheckUsability(); foreach (var brush in brushCollection.Brushes) { _graphics.FillRectangle((Brush)brush.EngineElement, rectangleF.ToGdiRectangleF()); } }
public void Release() { if (_brush != null) { _brush.Dispose(); _brush = null; } if (_outlineSymbol != null) { _outlineSymbol.Release(); } }
private HatchSymbol(ArgbColor foreColor, ArgbColor backColor, HatchStyle hatchStyle) { _forecolor = foreColor; _backcolor = backColor; _brush = Current.Engine.CreateHatchBrush(_hatchStyle = hatchStyle, _forecolor, _backcolor); }
public HatchSymbol() { _forecolor = ArgbColor.Red; _backcolor = ArgbColor.Transparent; _brush = Current.Engine.CreateHatchBrush(_hatchStyle = HatchStyle.BackwardDiagonal, ForeColor, BackColor); }