Ejemplo n.º 1
0
 public GpRect(GpPoint location,
               GpSize size)
 {
     X      = location.X;
     Y      = location.Y;
     Width  = size.Width;
     Height = size.Height;
 }
Ejemplo n.º 2
0
 public GpStatus AddLine(GpPoint pt1,
                         GpPoint pt2)
 {
     return(AddLine(pt1.X,
                    pt1.Y,
                    pt2.X,
                    pt2.Y));
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 8
0
 public GpStatus DrawClosedCurve(PenPlus pen,
                         GpPoint[] points)
 {
     return SetStatus(NativeMethods.GdipDrawClosedCurveI(nativeGraphics,
                                                       pen.nativePen,
                                                       points,
                                                       points.Length));
 }
Ejemplo n.º 9
0
        bool IsVisible(GpPoint point)
        {
            bool booln = false;

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

            return booln;
        }
Ejemplo n.º 10
0
 public GpStatus FillPolygon(BrushPlus brush,
                     GpPoint[] points)
 {
     return FillPolygon(brush, points, FillMode.FillModeAlternate);
 }
Ejemplo n.º 11
0
 GdipGetPathGradientCenterPointI(
     GpPathGradient brush, out GpPoint points);
Ejemplo n.º 12
0
GdipAddPathClosedCurve2I(GpPath path, GpPoint[] points, int count,
                                 float tension);
Ejemplo n.º 13
0
GdipAddPathLine2I(GpPath path, GpPoint []points, int count);
Ejemplo n.º 14
0
 public bool Equals(GpPoint point)
 {
     return((X == point.X) && (Y == point.Y));
 }
Ejemplo n.º 15
0
 public GpPoint(GpPoint point)
 {
     X = point.X;
     Y = point.Y;
 }
Ejemplo n.º 16
0
 public GpStatus SetCenterPoint(GpPoint point)
 {
     return(SetStatus(NativeMethods.GdipSetPathGradientCenterPointI(
                          (GpPathGradient)nativeBrush,
                          ref point)));
 }
Ejemplo n.º 17
0
 GdipSetPathGradientCenterPointI(
     GpPathGradient brush, ref GpPoint point);
Ejemplo n.º 18
0
GdipAddPathCurve3I(GpPath path, GpPoint[] points, int count,
                           int offset, int numberOfSegments, float tension);
Ejemplo n.º 19
0
 public void GetLocation(out GpPoint point)
 {
     point.X = X;
     point.Y = Y;
 }
Ejemplo n.º 20
0
GdipGetPathPointsI(GpPath path, GpPoint[] points, int count);
Ejemplo n.º 21
0
 public bool Contains(GpPoint pt)
 {
     return(Contains(pt.X, pt.Y));
 }
Ejemplo n.º 22
0
 public bool IsOutlineVisible(GpPoint point,
                              PenPlus pen,
                              GraphicsPlus g)
 {
     return(IsOutlineVisible(point.X, point.Y, pen, g));
 }
Ejemplo n.º 23
0
 public void Inflate(GpPoint point)
 {
     Inflate(point.X, point.Y);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 25
0
 public void Offset(GpPoint point)
 {
     Offset(point.X, point.Y);
 }
Ejemplo n.º 26
0
 public GpStatus FillPolygon(BrushPlus brush,
                     GpPoint[] points,
                    FillMode fillMode)
 {
     return SetStatus(NativeMethods.GdipFillPolygonI(nativeGraphics,
                                                   brush.nativeBrush,
                                                   points, points.Length,
                                                   fillMode));
 }
Ejemplo n.º 27
0
GdipDrawCurve3I(GpGraphics graphics, GpPen pen, GpPoint[] points,
 int count, int offset, int numberOfSegments, float tension);
Ejemplo n.º 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);
 }
Ejemplo n.º 29
0
GdipDrawClosedCurveI(GpGraphics graphics, GpPen pen,
       GpPoint[] points, int count);
Ejemplo n.º 30
0
 public GpStatus DrawCurve(PenPlus pen,
                   GpPoint[] points,
                  float tension)
 {
     return SetStatus(NativeMethods.GdipDrawCurve2I(nativeGraphics,
                                                  pen.nativePen,
                                                  points,
                                                  points.Length,
                                                  tension));
 }
Ejemplo n.º 31
0
GdipDrawClosedCurve2I(GpGraphics graphics, GpPen pen,
        GpPoint[] points, int count, float tension);
Ejemplo n.º 32
0
 public GpStatus DrawImage(ImagePlus image,
                   GpPoint point)
 {
     return DrawImage(image, point.X, point.Y);
 }
Ejemplo n.º 33
0
GdipFillPolygonI(GpGraphics graphics, GpBrush brush,
   GpPoint[] points, int count, FillMode fillMode);
Ejemplo n.º 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));
 }
Ejemplo n.º 35
0
 GdipFillPolygon2I(GpGraphics graphics, GpSolidFill brush,
 GpPoint[] points, int count);
Ejemplo n.º 36
0
GdipAddPathBeziersI(GpPath path, GpPoint[] points, int count);
Ejemplo n.º 37
0
GdipFillClosedCurveI(GpGraphics graphics, GpBrush brush,
                GpPoint[] points, int count);
Ejemplo n.º 38
0
GdipAddPathClosedCurveI(GpPath path, GpPoint[] points, int count);
Ejemplo n.º 39
0
GdipDrawLinesI(GpGraphics graphics, GpPen pen, GpPoint[] points,
        int count);
Ejemplo n.º 40
0
GdipAddPathPolygonI(GpPath path, GpPoint[] points, int count);
Ejemplo n.º 41
0
GdipFillClosedCurve2I(GpGraphics graphics, GpBrush brush,
                GpPoint[] points, int count,
               float tension, FillMode fillMode);
Ejemplo n.º 42
0
GdipDrawBeziersI(GpGraphics graphics, GpPen pen, GpPoint[] points,
          int count);
Ejemplo n.º 43
0
 public GpStatus DrawLine(PenPlus pen,
                 GpPoint pt1,
                 GpPoint pt2)
 {
     return DrawLine(pen,
                     pt1.X,
                     pt1.Y,
                     pt2.X,
                     pt2.Y);
 }
Ejemplo n.º 44
0
 public bool IsVisible(GpPoint point,
                       GraphicsPlus g)
 {
     return(IsVisible(point.X, point.Y, g));
 }
Ejemplo n.º 45
0
 public GpStatus FillClosedCurve(BrushPlus brush,
                         GpPoint[] points)
 {
     return SetStatus(NativeMethods.GdipFillClosedCurveI(nativeGraphics,
                                                       brush.nativeBrush,
                                                       points,
                                                       points.Length));
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 47
0
 GdipCreateLineBrushI(ref GpPoint point1,
                      ref GpPoint point2,
                      int color1, int color2,
                      WrapMode wrapMode,
                      out GpLineGradient lineGradient);