Exemplo n.º 1
0
 public void FillRectangles(BrushPlus brush,
                            RectangleF[] rects)
 {
     SetStatus(GdiPlus.GdipFillRectangles(nativeGraphics,
                                          brush.nativeBrush,
                                          rects, rects.Length));
 }
Exemplo n.º 2
0
        public PenPlus(BrushPlus brush, float width)
        {
            Unit unit = Unit.UnitWorld;

            nativePen  = null;
            lastResult = GdiPlus.GdipCreatePen2(brush.nativeBrush, width, unit, out nativePen);
        }
Exemplo n.º 3
0
 public void FillPie(BrushPlus brush,
                     Rectangle rect,
                     float startAngle,
                     float sweepAngle)
 {
     FillPie(brush, rect.X, rect.Y, rect.Width, rect.Height,
             startAngle, sweepAngle);
 }
Exemplo n.º 4
0
 public void FillRectangle(BrushPlus brush,
                           Rectangle rect)
 {
     FillRectangle(brush,
                   rect.X,
                   rect.Y,
                   rect.Width,
                   rect.Height);
 }
Exemplo n.º 5
0
        public void FillRoundRectangle(Rectangle rect, int radius, BrushPlus brush)
        {
            if (rect.Width < 1 || rect.Height < 1)
            {
                return;
            }
            GraphicsPath path = GetRoundPath(rect, radius, 0, PathMode.All, RoundedCorners.All);

            this.FillPath(brush, path);
        }
Exemplo n.º 6
0
 public void FillRectangle(BrushPlus brush,
                           float x,
                           float y,
                           float width,
                           float height)
 {
     SetStatus(GdiPlus.GdipFillRectangle(nativeGraphics,
                                         brush.nativeBrush, x, y,
                                         width, height));
 }
Exemplo n.º 7
0
 public void FillPie(BrushPlus brush,
                     float x,
                     float y,
                     float width,
                     float height,
                     float startAngle,
                     float sweepAngle)
 {
     SetStatus(GdiPlus.GdipFillPie(nativeGraphics,
                                   brush.nativeBrush, x, y,
                                   width, height, startAngle,
                                   sweepAngle));
 }
Exemplo n.º 8
0
        internal virtual BrushPlus Clone()
        {
            GpBrush brush = new GpBrush();

            SetStatus(GdiPlus.GdipCloneBrush(nativeBrush, out brush));

            BrushPlus newBrush = new BrushPlus(brush, lastResult);

            if (newBrush == null)
            {
                GdiPlus.GdipDeleteBrush(brush);
            }

            return(newBrush);
        }
Exemplo n.º 9
0
        internal virtual BrushPlus Clone()
        {
            GpBrush brush = new GpBrush();

            SetStatus(GdiPlus.GdipCloneBrush(nativeBrush, out brush));

            BrushPlus newBrush = new BrushPlus(brush, lastResult);

            if (newBrush == null)
            {
                GdiPlus.GdipDeleteBrush(brush);
            }

            return newBrush;
        }
Exemplo n.º 10
0
 public void FillRectangles(BrushPlus brush,
                        Rectangle[] rects)
 {
     SetStatus(GdiPlus.GdipFillRectanglesI(nativeGraphics,
                                                      brush.nativeBrush,
                                                      rects,
                                                      rects.Length));
 }
Exemplo n.º 11
0
 public PenPlus(BrushPlus brush, float width)
 {
     Unit unit = Unit.UnitWorld;
     nativePen = null;
     lastResult = GdiPlus.GdipCreatePen2(brush.nativeBrush,  width, unit, out nativePen);
 }
Exemplo n.º 12
0
 public void FillRectangle(BrushPlus brush,
                       Rectangle rect)
 {
     FillRectangle(brush,
                          rect.X,
                          rect.Y,
                          rect.Width,
                          rect.Height);
 }
Exemplo n.º 13
0
 public void FillRectangle(BrushPlus brush,
                      int x,
                      int y,
                      int width,
                      int height)
 {
     SetStatus(GdiPlus.GdipFillRectangleI(nativeGraphics,
                                                     brush.nativeBrush,
                                                     x,
                                                     y,
                                                     width,
                                                     height));
 }
Exemplo n.º 14
0
 public void FillPie(BrushPlus brush,
                int x,
                int y,
                int width,
                int height,
                float startAngle,
                float sweepAngle)
 {
     SetStatus(GdiPlus.GdipFillPieI(nativeGraphics,
                                               brush.nativeBrush,
                                               x,
                                               y,
                                               width,
                                               height,
                                               startAngle,
                                               sweepAngle));
 }
Exemplo n.º 15
0
 public void FillPie(BrushPlus brush,
                 Rectangle rect,
                float startAngle,
                float sweepAngle)
 {
     FillPie(brush, rect.X, rect.Y, rect.Width, rect.Height,
                    startAngle, sweepAngle);
 }
Exemplo n.º 16
0
 public void FillPath(BrushPlus brush, GraphicsPath path)
 {
     SetStatus(GdiPlus.GdipFillPath(nativeGraphics, brush.nativeBrush, path.nativePath));
 }
Exemplo n.º 17
0
 public void FillPath(BrushPlus brush, GraphicsPath path)
 {
     SetStatus(GdiPlus.GdipFillPath(nativeGraphics, brush.nativeBrush, path.nativePath));
 }
Exemplo n.º 18
0
 public void SetBrush(BrushPlus brush)
 {
     SetStatus(GdiPlus.GdipSetPenBrushFill(nativePen,
                                    brush.nativeBrush));
 }
Exemplo n.º 19
0
 public void SetBrush(BrushPlus brush)
 {
     SetStatus(GdiPlus.GdipSetPenBrushFill(nativePen,
                                           brush.nativeBrush));
 }
Exemplo n.º 20
0
 public void FillRoundRectangle(Rectangle rect, int radius, BrushPlus brush)
 {
     if (rect.Width < 1 || rect.Height < 1) return;
     GraphicsPath path = GetRoundPath(rect, radius, 0, PathMode.All, RoundedCorners.All);
     this.FillPath(brush, path);
 }