示例#1
0
        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();
        }
示例#2
0
        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();
        }