public void FillRectangles(BrushPlus brush, RectangleF[] rects) { SetStatus(GdiPlus.GdipFillRectangles(nativeGraphics, brush.nativeBrush, rects, rects.Length)); }
public PenPlus(BrushPlus brush, float width) { Unit unit = Unit.UnitWorld; nativePen = null; lastResult = GdiPlus.GdipCreatePen2(brush.nativeBrush, width, unit, out nativePen); }
public void FillPie(BrushPlus brush, Rectangle rect, float startAngle, float sweepAngle) { FillPie(brush, rect.X, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle); }
public void FillRectangle(BrushPlus brush, Rectangle rect) { FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height); }
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); }
public void FillRectangle(BrushPlus brush, float x, float y, float width, float height) { SetStatus(GdiPlus.GdipFillRectangle(nativeGraphics, brush.nativeBrush, x, y, width, height)); }
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)); }
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); }
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; }
public void FillRectangles(BrushPlus brush, Rectangle[] rects) { SetStatus(GdiPlus.GdipFillRectanglesI(nativeGraphics, brush.nativeBrush, rects, rects.Length)); }
public void FillRectangle(BrushPlus brush, int x, int y, int width, int height) { SetStatus(GdiPlus.GdipFillRectangleI(nativeGraphics, brush.nativeBrush, x, y, width, height)); }
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)); }
public void FillPath(BrushPlus brush, GraphicsPath path) { SetStatus(GdiPlus.GdipFillPath(nativeGraphics, brush.nativeBrush, path.nativePath)); }
public void SetBrush(BrushPlus brush) { SetStatus(GdiPlus.GdipSetPenBrushFill(nativePen, brush.nativeBrush)); }
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); }