Пример #1
0
 internal IOpenPoseObject ToNative()
 {
     if (this._Imp == null)
     {
         this._Imp = CreateImp();
     }
     return(this._Imp.ToNative(this.X, this.Y, this.Width, this.Height));
 }
Пример #2
0
        internal Rectangle(IntPtr ptr, bool isEnabledDispose = true)
        {
            if (!SupportTypes.TryGetValue(typeof(T), out var type))
            {
                throw new NotSupportedException($"{typeof(T).Name} does not support");
            }

            this._Imp   = CreateImp();
            this.X      = default(T);
            this.Y      = default(T);
            this.Width  = default(T);
            this.Height = default(T);
        }
Пример #3
0
        public Rectangle(T x, T y, T width, T height)
        {
            if (!SupportTypes.TryGetValue(typeof(T), out var type))
            {
                throw new NotSupportedException($"{typeof(T).Name} does not support");
            }

            this._Imp   = CreateImp();
            this.X      = x;
            this.Y      = y;
            this.Width  = width;
            this.Height = height;
        }