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

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