示例#1
0
 public void FillRectangles(BrushPlus brush,
                            RectangleF[] rects)
 {
     SetStatus(GdiPlus.GdipFillRectangles(nativeGraphics,
                                          brush.nativeBrush,
                                          rects, rects.Length));
 }
示例#2
0
文件: PenPlus.cs 项目: windygu/haina
        public PenPlus(BrushPlus brush, float width)
        {
            Unit unit = Unit.UnitWorld;

            nativePen  = null;
            lastResult = GdiPlus.GdipCreatePen2(brush.nativeBrush, width, unit, out nativePen);
        }
示例#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);
 }
示例#4
0
 public void FillRectangle(BrushPlus brush,
                           Rectangle rect)
 {
     FillRectangle(brush,
                   rect.X,
                   rect.Y,
                   rect.Width,
                   rect.Height);
 }
示例#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);
        }
示例#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));
 }
示例#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));
 }
示例#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);
        }
示例#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;
        }
示例#10
0
 public void FillRectangles(BrushPlus brush,
                        Rectangle[] rects)
 {
     SetStatus(GdiPlus.GdipFillRectanglesI(nativeGraphics,
                                                      brush.nativeBrush,
                                                      rects,
                                                      rects.Length));
 }
示例#11
0
 public PenPlus(BrushPlus brush, float width)
 {
     Unit unit = Unit.UnitWorld;
     nativePen = null;
     lastResult = GdiPlus.GdipCreatePen2(brush.nativeBrush,  width, unit, out nativePen);
 }
示例#12
0
 public void FillRectangle(BrushPlus brush,
                       Rectangle rect)
 {
     FillRectangle(brush,
                          rect.X,
                          rect.Y,
                          rect.Width,
                          rect.Height);
 }
示例#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));
 }
示例#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));
 }
示例#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);
 }
示例#16
0
 public void FillPath(BrushPlus brush, GraphicsPath path)
 {
     SetStatus(GdiPlus.GdipFillPath(nativeGraphics, brush.nativeBrush, path.nativePath));
 }
示例#17
0
 public void FillPath(BrushPlus brush, GraphicsPath path)
 {
     SetStatus(GdiPlus.GdipFillPath(nativeGraphics, brush.nativeBrush, path.nativePath));
 }
示例#18
0
 public void SetBrush(BrushPlus brush)
 {
     SetStatus(GdiPlus.GdipSetPenBrushFill(nativePen,
                                    brush.nativeBrush));
 }
示例#19
0
文件: PenPlus.cs 项目: windygu/haina
 public void SetBrush(BrushPlus brush)
 {
     SetStatus(GdiPlus.GdipSetPenBrushFill(nativePen,
                                           brush.nativeBrush));
 }
示例#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);
 }