public static extern GpStatus GdipDrawString( GpGraphics graphics, string text, INT length, GpFont font, ref RectF layoutRect, GpStringFormat stringFormat, GpBrush brush );
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; }
public static extern GpStatus GdipFillRegion(GpGraphics graphics, GpBrush brush, GpRegion region);
GdipFillClosedCurve2I(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count, float tension, FillMode fillMode);
public static extern GpStatus GdipCreatePen2(GpBrush brush, float width, Unit unit, out GpPen pen);
GdipFillPie(GpGraphics graphics, GpBrush brush, float x, float y, float width, float height, float startAngle, float sweepAngle);
GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);
GdipFillPolygonI(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count, FillMode fillMode);
GdipFillEllipse(GpGraphics graphics, GpBrush brush, float x, float y, float width, float height);
GdipGetBrushType(GpBrush brush, out BrushType type);
GdipFillRectangleI(GpGraphics graphics, GpBrush brush, int x, int y, int width, int height);
public static extern GpStatus GdipFillRectanglesI(GpGraphics graphics, GpBrush brush, GpRect[] rects, int count);
public static extern GpStatus GdipFillRectangleI(GpGraphics graphics, GpBrush brush, int x, int y, int width, int height);
public static extern GpStatus GdipFillRectangle(GpGraphics graphics, GpBrush brush, float x, float y, float width, float height);
public static extern GpStatus GdipDeleteBrush(GpBrush brush);
public static extern GpStatus GdipFillRectangleI(GpGraphics graphics, GpBrush brush, INT x, INT y, INT width, INT height);
GdipFillRectangle(GpGraphics graphics, GpBrush brush, float x, float y, float width, float height);
GdipSetPenBrushFill(GpPen pen, GpBrush brush);
GdipFillRectanglesI(GpGraphics graphics, GpBrush brush, GpRect[] rects, int count);
GdipGetPenBrushFill(GpPen pen, out GpBrush brush);
GdipFillPolygon2I(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count);
GdipCreatePen2(GpBrush brush, float width, Unit unit, out GpPen pen);
GdipFillEllipseI(GpGraphics graphics, GpBrush brush, int x, int y, int width, int height);
GdipFillPieI(GpGraphics graphics, GpBrush brush, int x, int y, int width, int height, float startAngle, float sweepAngle);
public static extern GpStatus GdipGetBrushType(GpBrush brush, out BrushType type);
GdipFillClosedCurveI(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count);
public static extern GpStatus GdipCloneBrush(GpBrush brush, out GpBrush cloneBrush);
GdipFillRegion(GpGraphics graphics, GpBrush brush, GpRegion region);
GdipCloneBrush(GpBrush brush, out GpBrush cloneBrush);
public static extern GpStatus GdipGetPenBrushFill(GpPen pen, out GpBrush brush);
GdipDeleteBrush(GpBrush brush);