コード例 #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
ファイル: BrushPlus.cs プロジェクト: mitice/foo
        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
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
        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
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 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
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 public GpStatus DrawClosedCurve(PenPlus pen,
                         GpPoint[] points)
 {
     return SetStatus(NativeMethods.GdipDrawClosedCurveI(nativeGraphics,
                                                       pen.nativePen,
                                                       points,
                                                       points.Length));
 }
コード例 #9
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
        bool IsVisible(GpPoint point)
        {
            bool booln = false;

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

            return booln;
        }
コード例 #10
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 public GpStatus FillPolygon(BrushPlus brush,
                     GpPoint[] points)
 {
     return FillPolygon(brush, points, FillMode.FillModeAlternate);
 }
コード例 #11
0
 GdipGetPathGradientCenterPointI(
     GpPathGradient brush, out GpPoint points);
コード例 #12
0
ファイル: Paths.cs プロジェクト: intille/mitessoftware
GdipAddPathClosedCurve2I(GpPath path, GpPoint[] points, int count,
                                 float tension);
コード例 #13
0
ファイル: Paths.cs プロジェクト: intille/mitessoftware
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
ファイル: BrushPlus.cs プロジェクト: mitice/foo
 public GpStatus SetCenterPoint(GpPoint point)
 {
     return(SetStatus(NativeMethods.GdipSetPathGradientCenterPointI(
                          (GpPathGradient)nativeBrush,
                          ref point)));
 }
コード例 #17
0
 GdipSetPathGradientCenterPointI(
     GpPathGradient brush, ref GpPoint point);
コード例 #18
0
ファイル: Paths.cs プロジェクト: intille/mitessoftware
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
ファイル: Paths.cs プロジェクト: intille/mitessoftware
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
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 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
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 public GpStatus FillPolygon(BrushPlus brush,
                     GpPoint[] points,
                    FillMode fillMode)
 {
     return SetStatus(NativeMethods.GdipFillPolygonI(nativeGraphics,
                                                   brush.nativeBrush,
                                                   points, points.Length,
                                                   fillMode));
 }
コード例 #27
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawCurve3I(GpGraphics graphics, GpPen pen, GpPoint[] points,
 int count, int offset, int numberOfSegments, float tension);
コード例 #28
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 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
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawClosedCurveI(GpGraphics graphics, GpPen pen,
       GpPoint[] points, int count);
コード例 #30
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 public GpStatus DrawCurve(PenPlus pen,
                   GpPoint[] points,
                  float tension)
 {
     return SetStatus(NativeMethods.GdipDrawCurve2I(nativeGraphics,
                                                  pen.nativePen,
                                                  points,
                                                  points.Length,
                                                  tension));
 }
コード例 #31
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawClosedCurve2I(GpGraphics graphics, GpPen pen,
        GpPoint[] points, int count, float tension);
コード例 #32
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 public GpStatus DrawImage(ImagePlus image,
                   GpPoint point)
 {
     return DrawImage(image, point.X, point.Y);
 }
コード例 #33
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillPolygonI(GpGraphics graphics, GpBrush brush,
   GpPoint[] points, int count, FillMode fillMode);
コード例 #34
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 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
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
 GdipFillPolygon2I(GpGraphics graphics, GpSolidFill brush,
 GpPoint[] points, int count);
コード例 #36
0
ファイル: Paths.cs プロジェクト: intille/mitessoftware
GdipAddPathBeziersI(GpPath path, GpPoint[] points, int count);
コード例 #37
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillClosedCurveI(GpGraphics graphics, GpBrush brush,
                GpPoint[] points, int count);
コード例 #38
0
ファイル: Paths.cs プロジェクト: intille/mitessoftware
GdipAddPathClosedCurveI(GpPath path, GpPoint[] points, int count);
コード例 #39
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawLinesI(GpGraphics graphics, GpPen pen, GpPoint[] points,
        int count);
コード例 #40
0
ファイル: Paths.cs プロジェクト: intille/mitessoftware
GdipAddPathPolygonI(GpPath path, GpPoint[] points, int count);
コード例 #41
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipFillClosedCurve2I(GpGraphics graphics, GpBrush brush,
                GpPoint[] points, int count,
               float tension, FillMode fillMode);
コード例 #42
0
ファイル: Drawing.cs プロジェクト: intille/mitessoftware
GdipDrawBeziersI(GpGraphics graphics, GpPen pen, GpPoint[] points,
          int count);
コード例 #43
0
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 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
ファイル: GraphicsPlus.cs プロジェクト: misiek/foo
 public GpStatus FillClosedCurve(BrushPlus brush,
                         GpPoint[] points)
 {
     return SetStatus(NativeMethods.GdipFillClosedCurveI(nativeGraphics,
                                                       brush.nativeBrush,
                                                       points,
                                                       points.Length));
 }
コード例 #46
0
ファイル: RegionPlus.cs プロジェクト: intille/mitessoftware
       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);