Exemplo n.º 1
0
 public void FillPath(IBrushCollection brushCollection, IGraphicsPath path)
 {
     foreach (var brush in brushCollection.Brushes)
     {
         _canvas?.DrawPath((SKPath)path.EngineElement, GetSKPaint(brush));
     }
 }
Exemplo n.º 2
0
 public void FillRectangle(IBrushCollection brushCollection, CanvasRectangleF rectangleF)
 {
     foreach (var brush in brushCollection.Brushes)
     {
         _canvas?.DrawRect(rectangleF.ToSKRect(), GetSKPaint(brush));
     }
 }
Exemplo n.º 3
0
        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);
            }
        }
Exemplo n.º 4
0
        public void FillRectangle(IBrushCollection brushCollection, CanvasRectangleF rectangleF)
        {
            CheckUsability();

            foreach (var brush in brushCollection.Brushes)
            {
                _graphics.FillRectangle((Brush)brush.EngineElement, rectangleF.ToGdiRectangleF());
            }
        }
Exemplo n.º 5
0
 public void Release()
 {
     if (_brush != null)
     {
         _brush.Dispose();
         _brush = null;
     }
     if (_outlineSymbol != null)
     {
         _outlineSymbol.Release();
     }
 }
Exemplo n.º 6
0
 private HatchSymbol(ArgbColor foreColor, ArgbColor backColor, HatchStyle hatchStyle)
 {
     _forecolor = foreColor;
     _backcolor = backColor;
     _brush     = Current.Engine.CreateHatchBrush(_hatchStyle = hatchStyle, _forecolor, _backcolor);
 }
Exemplo n.º 7
0
 public HatchSymbol()
 {
     _forecolor = ArgbColor.Red;
     _backcolor = ArgbColor.Transparent;
     _brush     = Current.Engine.CreateHatchBrush(_hatchStyle = HatchStyle.BackwardDiagonal, ForeColor, BackColor);
 }