예제 #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
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
파일: 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
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
파일: 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
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
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
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
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
 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
파일: 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
       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);