Beispiel #1
0
 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();
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 GdipFillPie(GpGraphics graphics, GpBrush brush, float x, float y,
             float width, float height, float startAngle, float sweepAngle);
Beispiel #4
0
 GdipFillEllipseI(GpGraphics graphics, GpBrush brush, int x, int y,
                  int width, int height);
Beispiel #5
0
 GdipFillEllipse(GpGraphics graphics, GpBrush brush, float x, float y,
                 float width, float height);
Beispiel #6
0
 GdipDeleteBrush(GpBrush brush);
Beispiel #7
0
 GdipGetPenBrushFill(GpPen pen, out GpBrush brush);
Beispiel #8
0
 GdipFillRegion(GpGraphics graphics, GpBrush brush,
                GpRegion region);
Beispiel #9
0
 GdipFillClosedCurveI(GpGraphics graphics, GpBrush brush,
                      GpPoint[] points, int count);
Beispiel #10
0
 GdipFillRectangle(GpGraphics graphics, GpBrush brush, float x, float y,
                   float width, float height);
Beispiel #11
0
 public void SetNativeBrush(GpBrush nativeBrush)
 {
     this.nativeBrush = nativeBrush;
 }
Beispiel #12
0
 public BrushPlus(GpBrush nativeBrush, GpStatus status)
 {
     lastResult = status;
     SetNativeBrush(nativeBrush);
 }
Beispiel #13
0
 GdipGetBrushType(GpBrush brush, out BrushType type);
Beispiel #14
0
 GdipFillPieI(GpGraphics graphics, GpBrush brush, int x, int y,
              int width, int height, float startAngle, float sweepAngle);
Beispiel #15
0
 GdipFillRectangleI(GpGraphics graphics, GpBrush brush, int x, int y,
                    int width, int height);
Beispiel #16
0
 GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);
Beispiel #17
0
 GdipFillRectanglesI(GpGraphics graphics, GpBrush brush,
                     GpRect[] rects, int count);
Beispiel #18
0
 GdipFillClosedCurve2I(GpGraphics graphics, GpBrush brush,
                       GpPoint[] points, int count,
                       float tension, FillMode fillMode);
Beispiel #19
0
 GdipFillPolygonI(GpGraphics graphics, GpBrush brush,
                  GpPoint[] points, int count, FillMode fillMode);
Beispiel #20
0
 GdipSetPenBrushFill(GpPen pen, GpBrush brush);
Beispiel #21
0
 GdipFillPolygon2I(GpGraphics graphics, GpBrush brush,
                   GpPoint[] points, int count);
Beispiel #22
0
 GdipCreatePen2(GpBrush brush, float width, Unit unit,
                out GpPen pen);
Beispiel #23
0
 GdipCloneBrush(GpBrush brush, out GpBrush cloneBrush);