internal IOpenPoseObject ToNative() { if (this._Imp == null) { this._Imp = CreateImp(); } return(this._Imp.ToNative(this.X, this.Y, this.Width, this.Height)); }
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); }
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; }