Example #1
0
 /// <summary>
 /// Writes data to a file storage.
 /// </summary>
 /// <param name="val"></param>
 public FileStorage Add(Size2f val)
 {
     ThrowIfDisposed();
     NativeMethods.core_FileStorage_shift_Size2f(ptr, val);
     GC.KeepAlive(this);
     return(this);
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="location"></param>
 /// <param name="size"></param>
 public Rectf(Point2f location, Size2f size)
 {
     X      = location.X;
     Y      = location.Y;
     Width  = size.Width;
     Height = size.Height;
 }
Example #3
0
 public static extern void core_Mat_push_back_Size2f(IntPtr self, Size2f v);
Example #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="center"></param>
 /// <param name="size"></param>
 /// <param name="angle"></param>
 public RotatedRect(Point2f center, Size2f size, float angle)
 {
     Center = center;
     Size   = size;
     Angle  = angle;
 }
 public static extern ExceptionStatus core_FileNode_read_Size2f(IntPtr node, out Size2f returnValue);
Example #6
0
        /// <summary>
        /// このCvRectを指定の量だけ膨らませる
        /// </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(Size2f size)
        {
            Inflate(size.Width, size.Height);
        }
Example #7
0
 public static extern ExceptionStatus core_FileStorage_shift_Size2f(IntPtr fs, Size2f val);
Example #8
0
 /// <summary>
 /// Expands or shrinks rectangle by a certain amount
 /// </summary>
 /// <param name="size"></param>
 /// <returns></returns>
 public readonly Rect2f Add(Size2f size) => new (X, Y, Width + size.Width, Height + size.Height);
 public static extern ExceptionStatus core_Mat_push_back_Size2f(IntPtr self, Size2f v);
 public static extern void core_FileStorage_shift_Size2f(IntPtr fs, Size2f val);
Example #11
0
 public static void Run(IntPtr ptr, Size2f v) => NativeMethods.core_Mat_push_back_Size2f(ptr, v);