/// <summary> /// Writes data to a file storage. /// </summary> /// <param name="val"></param> public FileStorage Add(Size2d val) { ThrowIfDisposed(); NativeMethods.core_FileStorage_shift_Size2d(ptr, val); GC.KeepAlive(this); return(this); }
/// <summary> /// /// </summary> /// <param name="location"></param> /// <param name="size"></param> public Rect2d(Point2d location, Size2d size) { X = location.X; Y = location.Y; Width = size.Width; Height = size.Height; }
public static extern ExceptionStatus core_FileNode_read_Size2d(IntPtr node, out Size2d returnValue);
/// <summary> /// このRect2dを指定の量だけ膨らませる /// </summary> /// <param name="size">この四角形の膨張量</param> #else /// <summary> /// Inflates this Rect by the specified amount. /// </summary> /// <param name="size">The amount to inflate this rectangle. </param> #endif public void Inflate(Size2d size) { Inflate(size.Width, size.Height); }
public static extern ExceptionStatus core_FileStorage_shift_Size2d(IntPtr fs, Size2d val);
public static extern ExceptionStatus core_Mat_push_back_Size2d(IntPtr self, Size2d v);
public static extern ExceptionStatus imgproc_ellipse2Poly_double( Point2d center, Size2d axes, int angle, int arcStart, int arcEnd, int delta, IntPtr pts);
public static extern void core_FileStorage_shift_Size2d(IntPtr fs, Size2d val);
/// <summary> /// Shifts rectangle by a certain offset /// </summary> /// <param name="size"></param> /// <returns></returns> public readonly Rect2d Add(Size2d size) => new(X, Y, Width + size.Width, Height + size.Height);