public V2DepthFrame(IDepthFrame frame) { _frame = frame; _initialized = true; _description = frame.get_FrameDescription(); Time = frame.get_RelativeTime(); _buffer = _frame.AccessUnderlyingBuffer(out _bufferSize); }
void SetFrame(IDepthFrame frame) { _frame = frame; _description = frame.get_FrameDescription(); _time = frame.get_RelativeTime(); UInt32 capacity; _buffer = _frame.AccessUnderlyingBuffer(out capacity); _description = _frame.get_FrameDescription(); _bytesPerPixel = (int)_description.get_BytesPerPixel(); _width = _description.get_Width(); _height = _description.get_Height(); }
protected override void OnDispose() { if (_description != null) { Marshal.ReleaseComObject(_description); _description = null; } if (_frame != null) { Marshal.ReleaseComObject(_frame); _frame = null; } if (_reference != null) { Marshal.ReleaseComObject(_reference); _reference = null; } if (_data != null) { Marshal.ReleaseComObject(_data); _data = null; } }
public V2DepthFrame(IDepthFrame frame) { SetFrame(frame); }
public MultiFrame(IColorFrame colorFrame, IBodyFrame bodyFrame, IDepthFrame depthFrame) { ColorFrame = colorFrame; BodyFrame = bodyFrame; DepthFrame = depthFrame; }
public DepthFrameReadyEventArgs(IDepthFrame depthFrame) { DepthFrame = depthFrame; }