public GpRect(GpPoint location, GpSize size) { X = location.X; Y = location.Y; Width = size.Width; Height = size.Height; }
public GpStatus AddLine(GpPoint pt1, GpPoint pt2) { return(AddLine(pt1.X, pt1.Y, pt2.X, pt2.Y)); }
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)); }
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); }
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); }
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)); }
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)); }
public GpStatus DrawClosedCurve(PenPlus pen, GpPoint[] points) { return SetStatus(NativeMethods.GdipDrawClosedCurveI(nativeGraphics, pen.nativePen, points, points.Length)); }
bool IsVisible(GpPoint point) { bool booln = false; SetStatus(NativeMethods.GdipIsVisiblePathPointI(new GpPath(), point.X, point.Y, nativeGraphics, out booln)); return booln; }
public GpStatus FillPolygon(BrushPlus brush, GpPoint[] points) { return FillPolygon(brush, points, FillMode.FillModeAlternate); }
GdipGetPathGradientCenterPointI( GpPathGradient brush, out GpPoint points);
GdipAddPathClosedCurve2I(GpPath path, GpPoint[] points, int count, float tension);
GdipAddPathLine2I(GpPath path, GpPoint []points, int count);
public bool Equals(GpPoint point) { return((X == point.X) && (Y == point.Y)); }
public GpPoint(GpPoint point) { X = point.X; Y = point.Y; }
public GpStatus SetCenterPoint(GpPoint point) { return(SetStatus(NativeMethods.GdipSetPathGradientCenterPointI( (GpPathGradient)nativeBrush, ref point))); }
GdipSetPathGradientCenterPointI( GpPathGradient brush, ref GpPoint point);
GdipAddPathCurve3I(GpPath path, GpPoint[] points, int count, int offset, int numberOfSegments, float tension);
public void GetLocation(out GpPoint point) { point.X = X; point.Y = Y; }
GdipGetPathPointsI(GpPath path, GpPoint[] points, int count);
public bool Contains(GpPoint pt) { return(Contains(pt.X, pt.Y)); }
public bool IsOutlineVisible(GpPoint point, PenPlus pen, GraphicsPlus g) { return(IsOutlineVisible(point.X, point.Y, pen, g)); }
public void Inflate(GpPoint point) { Inflate(point.X, point.Y); }
public GpStatus FillClosedCurve(BrushPlus brush, GpPoint[] points, FillMode fillMode, float tension) { return SetStatus(NativeMethods.GdipFillClosedCurve2I(nativeGraphics, brush.nativeBrush, points, points.Length, tension, fillMode)); }
public void Offset(GpPoint point) { Offset(point.X, point.Y); }
public GpStatus FillPolygon(BrushPlus brush, GpPoint[] points, FillMode fillMode) { return SetStatus(NativeMethods.GdipFillPolygonI(nativeGraphics, brush.nativeBrush, points, points.Length, fillMode)); }
GdipDrawCurve3I(GpGraphics graphics, GpPen pen, GpPoint[] points, int count, int offset, int numberOfSegments, float tension);
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); }
GdipDrawClosedCurveI(GpGraphics graphics, GpPen pen, GpPoint[] points, int count);
public GpStatus DrawCurve(PenPlus pen, GpPoint[] points, float tension) { return SetStatus(NativeMethods.GdipDrawCurve2I(nativeGraphics, pen.nativePen, points, points.Length, tension)); }
GdipDrawClosedCurve2I(GpGraphics graphics, GpPen pen, GpPoint[] points, int count, float tension);
public GpStatus DrawImage(ImagePlus image, GpPoint point) { return DrawImage(image, point.X, point.Y); }
GdipFillPolygonI(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count, FillMode fillMode);
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)); }
GdipFillPolygon2I(GpGraphics graphics, GpSolidFill brush, GpPoint[] points, int count);
GdipAddPathBeziersI(GpPath path, GpPoint[] points, int count);
GdipFillClosedCurveI(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count);
GdipAddPathClosedCurveI(GpPath path, GpPoint[] points, int count);
GdipDrawLinesI(GpGraphics graphics, GpPen pen, GpPoint[] points, int count);
GdipAddPathPolygonI(GpPath path, GpPoint[] points, int count);
GdipFillClosedCurve2I(GpGraphics graphics, GpBrush brush, GpPoint[] points, int count, float tension, FillMode fillMode);
GdipDrawBeziersI(GpGraphics graphics, GpPen pen, GpPoint[] points, int count);
public GpStatus DrawLine(PenPlus pen, GpPoint pt1, GpPoint pt2) { return DrawLine(pen, pt1.X, pt1.Y, pt2.X, pt2.Y); }
public bool IsVisible(GpPoint point, GraphicsPlus g) { return(IsVisible(point.X, point.Y, g)); }
public GpStatus FillClosedCurve(BrushPlus brush, GpPoint[] points) { return SetStatus(NativeMethods.GdipFillClosedCurveI(nativeGraphics, brush.nativeBrush, points, points.Length)); }
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; }
GdipCreateLineBrushI(ref GpPoint point1, ref GpPoint point2, int color1, int color2, WrapMode wrapMode, out GpLineGradient lineGradient);