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