protected virtual void Dispose(bool disposing) { if (disposing) { } // free native resources if there are any. if ((IntPtr)nativeBrush != IntPtr.Zero) { NativeMethods.GdipDeleteBrush(nativeBrush); nativeBrush = new GpBrush(); } }
internal virtual BrushPlus Clone() { GpBrush brush = new GpBrush(); SetStatus(NativeMethods.GdipCloneBrush(nativeBrush, out brush)); BrushPlus newBrush = new BrushPlus(brush, lastResult); if (newBrush == null) { NativeMethods.GdipDeleteBrush(brush); } return(newBrush); }
GdipFillPie(GpGraphics graphics, GpBrush brush, float x, float y, float width, float height, float startAngle, float sweepAngle);
GdipFillEllipseI(GpGraphics graphics, GpBrush brush, int x, int y, int width, int height);
GdipFillEllipse(GpGraphics graphics, GpBrush brush, float x, float y, float width, float height);
GdipDeleteBrush(GpBrush brush);
GdipGetPenBrushFill(GpPen pen, out GpBrush brush);
GdipFillRegion(GpGraphics graphics, GpBrush brush, GpRegion region);
GdipFillClosedCurveI(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count);
GdipFillRectangle(GpGraphics graphics, GpBrush brush, float x, float y, float width, float height);
public void SetNativeBrush(GpBrush nativeBrush) { this.nativeBrush = nativeBrush; }
public BrushPlus(GpBrush nativeBrush, GpStatus status) { lastResult = status; SetNativeBrush(nativeBrush); }
GdipGetBrushType(GpBrush brush, out BrushType type);
GdipFillPieI(GpGraphics graphics, GpBrush brush, int x, int y, int width, int height, float startAngle, float sweepAngle);
GdipFillRectangleI(GpGraphics graphics, GpBrush brush, int x, int y, int width, int height);
GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);
GdipFillRectanglesI(GpGraphics graphics, GpBrush brush, GpRect[] rects, int count);
GdipFillClosedCurve2I(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count, float tension, FillMode fillMode);
GdipFillPolygonI(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count, FillMode fillMode);
GdipSetPenBrushFill(GpPen pen, GpBrush brush);
GdipFillPolygon2I(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count);
GdipCreatePen2(GpBrush brush, float width, Unit unit, out GpPen pen);
GdipCloneBrush(GpBrush brush, out GpBrush cloneBrush);