Beispiel #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
     }
     // free native resources if there are any.
     if ((IntPtr)nativeBrush != IntPtr.Zero)
     {
         GdiPlus.GdipDeleteBrush(nativeBrush);
         nativeBrush = new GpBrush();
     }
 }
Beispiel #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
     }
     // free native resources if there are any.
     if ((IntPtr)nativeBrush != IntPtr.Zero)
     {
         GdiPlus.GdipDeleteBrush(nativeBrush);
         nativeBrush = new GpBrush();
     }
 }
Beispiel #3
0
        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;
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
 internal static extern GpStatus GdipCreatePen2(GpBrush brush, float width, Unit unit, out GpPen pen);
Beispiel #6
0
 extern static internal GpStatus GdipFillPieI(GpGraphics graphics, GpBrush brush, int x, int y,
                                              int width, int height, float startAngle, float sweepAngle);
Beispiel #7
0
 GdipFillEllipse(GpGraphics graphics, GpBrush brush, float x, float y,
                 float width, float height);
Beispiel #8
0
 GdipFillPolygonI(GpGraphics graphics, GpBrush brush,
                  Point[] points, int count, FillMode fillMode);
Beispiel #9
0
 GdipFillRectangleI(GpGraphics graphics, GpBrush brush, int x, int y,
                    int width, int height);
Beispiel #10
0
 public static extern GpStatus GdipDrawString(GpGraphics nativeGraphics, string text, int length, int gpFont, RectangleF rect, int p, GpBrush gpBrush);
Beispiel #11
0
 internal static extern GpStatus GdipFillRectangle(GpGraphics graphics, GpBrush brush, float x, float y,
     float width, float height);
Beispiel #12
0
 internal static extern GpStatus GdipFillPolygon2(GpGraphics graphics, GpBrush brush,
     PointF[] points, int count);
Beispiel #13
0
 public void SetNativeBrush(GpBrush nativeBrush)
 {
     this.nativeBrush = nativeBrush;
 }
Beispiel #14
0
 public BrushPlus(GpBrush nativeBrush, GpStatus status)
 {
     lastResult = status;
     SetNativeBrush(nativeBrush);
 }
Beispiel #15
0
 internal static extern GpStatus GdipFillRectanglesI(GpGraphics graphics, GpBrush brush,
     Rectangle[] rects, int count);
Beispiel #16
0
 internal static extern GpStatus GdipFillRectangleI(GpGraphics graphics, GpBrush brush, int x, int y,
     int width, int height);
Beispiel #17
0
 internal static extern GpStatus GdipFillPieI(GpGraphics graphics, GpBrush brush, int x, int y,
     int width, int height, float startAngle, float sweepAngle);
Beispiel #18
0
 internal static extern GpStatus GdipDeleteBrush(GpBrush brush);
Beispiel #19
0
 extern static internal GpStatus GdipGetPenBrushFill(GpPen pen, out GpBrush brush);
Beispiel #20
0
 internal static extern GpStatus GdipFillPolygonI(GpGraphics graphics, GpBrush brush,
     Point[] points, int count, FillMode fillMode);
Beispiel #21
0
 internal static extern GpStatus GdipCloneBrush(GpBrush brush, out GpBrush cloneBrush);
Beispiel #22
0
 extern static internal GpStatus GdipCreatePen2(GpBrush brush, float width, Unit unit, out GpPen pen);
Beispiel #23
0
 internal static extern GpStatus GdipGetBrushType(GpBrush brush, out BrushType type);
Beispiel #24
0
 public extern static GpStatus GdipDrawString(GpGraphics nativeGraphics, string text, int length, GpFont gpFont, RectangleF rect, int p, GpBrush gpBrush);
Beispiel #25
0
 GdipFillRectangle(GpGraphics graphics, GpBrush brush, float x, float y,
                   float width, float height);
Beispiel #26
0
 internal static extern GpStatus GdipCloneBrush(GpBrush brush, out GpBrush cloneBrush);
Beispiel #27
0
 GdipFillRectanglesI(GpGraphics graphics, GpBrush brush,
                     Rectangle[] rects, int count);
Beispiel #28
0
 internal static extern GpStatus GdipDeleteBrush(GpBrush brush);
Beispiel #29
0
 GdipFillPolygon2I(GpGraphics graphics, GpBrush brush,
                   Point[] points, int count);
Beispiel #30
0
 internal static extern GpStatus  GdipGetBrushType(GpBrush brush, out BrushType type);
Beispiel #31
0
 GdipFillEllipseI(GpGraphics graphics, GpBrush brush, int x, int y,
                  int width, int height);
Beispiel #32
0
 public BrushPlus(GpBrush nativeBrush, GpStatus status)
 {
     lastResult = status;
     SetNativeBrush(nativeBrush);
 }
Beispiel #33
0
 extern static internal GpStatus GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);
Beispiel #34
0
 public void SetNativeBrush(GpBrush nativeBrush)
 {
     this.nativeBrush = nativeBrush;
 }
Beispiel #35
0
 internal static extern GpStatus GdipSetPenBrushFill(GpPen pen, GpBrush brush);
Beispiel #36
0
 internal static extern GpStatus GdipFillPath(GpGraphics graphics, GpBrush brush, GpPath path);