Esempio n. 1
0
 /// <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);
 }
Esempio n. 2
0
 /// <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);
Esempio n. 4
0
        /// <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);
        }
Esempio n. 5
0
 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);
Esempio n. 9
0
 /// <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);