Пример #1
0
 public GpRect(GpPoint location,
               GpSize size)
 {
     X      = location.X;
     Y      = location.Y;
     Width  = size.Width;
     Height = size.Height;
 }
Пример #2
0
 public GpStatus AddLine(GpPoint pt1,
                         GpPoint pt2)
 {
     return(AddLine(pt1.X,
                    pt1.Y,
                    pt2.X,
                    pt2.Y));
 }
Пример #3
0
 public GpStatus AddBezier(GpPoint pt1,
                           GpPoint pt2,
                           GpPoint pt3,
                           GpPoint pt4)
 {
     return(AddBezier(pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X,
                      pt4.Y));
 }
Пример #4
0
        IsVisible(GpPoint point,
                  GraphicsPlus g)
        {
            bool booln = false;


            SetStatus(NativeMethods.GdipIsVisibleRegionPointI(nativeRegion,
                                                              point.X,
                                                              point.Y,
                                                              (g == null)
                                                            ? new GpGraphics() : g.nativeGraphics,
                                                              out booln));
            return(booln);
        }
Пример #5
0
        LinearGradientBrush(GpPoint point1,
                            GpPoint point2,
                            Color color1,
                            Color color2)
        {
            GpLineGradient brush;

            lastResult = NativeMethods.GdipCreateLineBrushI(ref point1,
                                                            ref point2,
                                                            color1.ToArgb(),
                                                            color2.ToArgb(),
                                                            WrapMode.WrapModeTile,
                                                            out brush);

            SetNativeBrush(brush);
        }
Пример #6
0
        public GpStatus DrawImage(ImagePlus image,
                          GpPoint[] destPoints)
        {
            int count = destPoints.Length;
            if (count != 3 && count != 4)
                return SetStatus(GpStatus.InvalidParameter);

            return SetStatus(NativeMethods.GdipDrawImagePointsI(nativeGraphics,
                                                              image != null ? image.nativeImage
                                                                    : null,
                                                              destPoints,
                                                              count));
        }
Пример #7
0
 public GpStatus DrawCurve(PenPlus pen,
                   GpPoint[] points,
                  int offset,
                  int numberOfSegments,
                  float tension)
 {
     return SetStatus(NativeMethods.GdipDrawCurve3I(nativeGraphics,
                                                  pen.nativePen,
                                                  points,
                                                  points.Length,
                                                  offset,
                                                  numberOfSegments,
                                                  tension));
 }
Пример #8
0
 public GpStatus DrawClosedCurve(PenPlus pen,
                         GpPoint[] points)
 {
     return SetStatus(NativeMethods.GdipDrawClosedCurveI(nativeGraphics,
                                                       pen.nativePen,
                                                       points,
                                                       points.Length));
 }
Пример #9
0
        bool IsVisible(GpPoint point)
        {
            bool booln = false;

            SetStatus(NativeMethods.GdipIsVisiblePathPointI(new GpPath(),
                                                      point.X,
                                                      point.Y,
                                                      nativeGraphics,
                                                      out booln));

            return booln;
        }
Пример #10
0
 public GpStatus FillPolygon(BrushPlus brush,
                     GpPoint[] points)
 {
     return FillPolygon(brush, points, FillMode.FillModeAlternate);
 }
Пример #11
0
 GdipGetPathGradientCenterPointI(
     GpPathGradient brush, out GpPoint points);
Пример #12
0
GdipAddPathClosedCurve2I(GpPath path, GpPoint[] points, int count,
                                 float tension);
Пример #13
0
GdipAddPathLine2I(GpPath path, GpPoint []points, int count);
Пример #14
0
 public bool Equals(GpPoint point)
 {
     return((X == point.X) && (Y == point.Y));
 }
Пример #15
0
 public GpPoint(GpPoint point)
 {
     X = point.X;
     Y = point.Y;
 }
Пример #16
0
 public GpStatus SetCenterPoint(GpPoint point)
 {
     return(SetStatus(NativeMethods.GdipSetPathGradientCenterPointI(
                          (GpPathGradient)nativeBrush,
                          ref point)));
 }
Пример #17
0
 GdipSetPathGradientCenterPointI(
     GpPathGradient brush, ref GpPoint point);
Пример #18
0
GdipAddPathCurve3I(GpPath path, GpPoint[] points, int count,
                           int offset, int numberOfSegments, float tension);
Пример #19
0
 public void GetLocation(out GpPoint point)
 {
     point.X = X;
     point.Y = Y;
 }
Пример #20
0
GdipGetPathPointsI(GpPath path, GpPoint[] points, int count);
Пример #21
0
 public bool Contains(GpPoint pt)
 {
     return(Contains(pt.X, pt.Y));
 }
Пример #22
0
 public bool IsOutlineVisible(GpPoint point,
                              PenPlus pen,
                              GraphicsPlus g)
 {
     return(IsOutlineVisible(point.X, point.Y, pen, g));
 }
Пример #23
0
 public void Inflate(GpPoint point)
 {
     Inflate(point.X, point.Y);
 }
Пример #24
0
 public GpStatus FillClosedCurve(BrushPlus brush,
                         GpPoint[] points,
                        FillMode fillMode,
                        float tension)
 {
     return SetStatus(NativeMethods.GdipFillClosedCurve2I(nativeGraphics,
                                                        brush.nativeBrush,
                                                        points, points.Length,
                                                        tension, fillMode));
 }
Пример #25
0
 public void Offset(GpPoint point)
 {
     Offset(point.X, point.Y);
 }
Пример #26
0
 public GpStatus FillPolygon(BrushPlus brush,
                     GpPoint[] points,
                    FillMode fillMode)
 {
     return SetStatus(NativeMethods.GdipFillPolygonI(nativeGraphics,
                                                   brush.nativeBrush,
                                                   points, points.Length,
                                                   fillMode));
 }
Пример #27
0
GdipDrawCurve3I(GpGraphics graphics, GpPen pen, GpPoint[] points,
 int count, int offset, int numberOfSegments, float tension);
Пример #28
0
 public GpStatus DrawBezier(PenPlus pen,
                    GpPoint pt1,
                    GpPoint pt2,
                    GpPoint pt3,
                    GpPoint pt4)
 {
     return DrawBezier(pen,
                       pt1.X,
                       pt1.Y,
                       pt2.X,
                       pt2.Y,
                       pt3.X,
                       pt3.Y,
                       pt4.X,
                       pt4.Y);
 }
Пример #29
0
GdipDrawClosedCurveI(GpGraphics graphics, GpPen pen,
       GpPoint[] points, int count);
Пример #30
0
 public GpStatus DrawCurve(PenPlus pen,
                   GpPoint[] points,
                  float tension)
 {
     return SetStatus(NativeMethods.GdipDrawCurve2I(nativeGraphics,
                                                  pen.nativePen,
                                                  points,
                                                  points.Length,
                                                  tension));
 }
Пример #31
0
GdipDrawClosedCurve2I(GpGraphics graphics, GpPen pen,
        GpPoint[] points, int count, float tension);
Пример #32
0
 public GpStatus DrawImage(ImagePlus image,
                   GpPoint point)
 {
     return DrawImage(image, point.X, point.Y);
 }
Пример #33
0
GdipFillPolygonI(GpGraphics graphics, GpBrush brush,
   GpPoint[] points, int count, FillMode fillMode);
Пример #34
0
 public GpStatus DrawImage(ImagePlus image,
                   GpPoint[] destPoints,
                  int srcx,
                  int srcy,
                  int srcwidth,
                  int srcheight,
                  Unit srcUnit,
                   ImageAttributesPlus imageAttributes)
 {
     return SetStatus(NativeMethods.GdipDrawImagePointsRectI(nativeGraphics,
                                                           image != null ? image.nativeImage
                                                                 : null,
                                                           destPoints,
                                                           destPoints.Length,
                                                           srcx,
                                                           srcy,
                                                           srcwidth,
                                                           srcheight,
                                                           srcUnit,
                                                           imageAttributes != null
                                                            ? imageAttributes.nativeImageAttr
                                                            : new GpImageAttributes(),
                                                           IntPtr.Zero,
                                                           IntPtr.Zero));
 }
Пример #35
0
 GdipFillPolygon2I(GpGraphics graphics, GpSolidFill brush,
 GpPoint[] points, int count);
Пример #36
0
GdipAddPathBeziersI(GpPath path, GpPoint[] points, int count);
Пример #37
0
GdipFillClosedCurveI(GpGraphics graphics, GpBrush brush,
                GpPoint[] points, int count);
Пример #38
0
GdipAddPathClosedCurveI(GpPath path, GpPoint[] points, int count);
Пример #39
0
GdipDrawLinesI(GpGraphics graphics, GpPen pen, GpPoint[] points,
        int count);
Пример #40
0
GdipAddPathPolygonI(GpPath path, GpPoint[] points, int count);
Пример #41
0
GdipFillClosedCurve2I(GpGraphics graphics, GpBrush brush,
                GpPoint[] points, int count,
               float tension, FillMode fillMode);
Пример #42
0
GdipDrawBeziersI(GpGraphics graphics, GpPen pen, GpPoint[] points,
          int count);
Пример #43
0
 public GpStatus DrawLine(PenPlus pen,
                 GpPoint pt1,
                 GpPoint pt2)
 {
     return DrawLine(pen,
                     pt1.X,
                     pt1.Y,
                     pt2.X,
                     pt2.Y);
 }
Пример #44
0
 public bool IsVisible(GpPoint point,
                       GraphicsPlus g)
 {
     return(IsVisible(point.X, point.Y, g));
 }
Пример #45
0
 public GpStatus FillClosedCurve(BrushPlus brush,
                         GpPoint[] points)
 {
     return SetStatus(NativeMethods.GdipFillClosedCurveI(nativeGraphics,
                                                       brush.nativeBrush,
                                                       points,
                                                       points.Length));
 }
Пример #46
0
       IsVisible(GpPoint point,
                          GraphicsPlus g)
        {
            bool booln = false;


            SetStatus(NativeMethods.GdipIsVisibleRegionPointI(nativeRegion,
                                                           point.X,
                                                           point.Y,
                                                           (g == null)
                                                            ? new GpGraphics() : g.nativeGraphics,
                                                           out booln));
            return booln;
        }
Пример #47
0
 GdipCreateLineBrushI(ref GpPoint point1,
                      ref GpPoint point2,
                      int color1, int color2,
                      WrapMode wrapMode,
                      out GpLineGradient lineGradient);