void SetFrame(IColorFrame frame) { _frame = frame; _time = frame.get_RelativeTime(); UInt32 capacity; _buffer = _frame.AccessRawUnderlyingBuffer(out capacity); _description = frame.get_FrameDescription(); _bytesPerPixel=(Int32)_description.get_BytesPerPixel(); _width=_description.get_Width(); _height=_description.get_Height(); }
void SetFrame(IColorFrame frame) { _frame = frame; _time = frame.get_RelativeTime(); UInt32 capacity; _buffer = _frame.AccessRawUnderlyingBuffer(out capacity); _description = frame.get_FrameDescription(); _bytesPerPixel = (Int32)_description.get_BytesPerPixel(); _width = _description.get_Width(); _height = _description.get_Height(); }