コード例 #1
0
        public BodyFrame AcquireLatestFrame()
        {
            IntPtr ptr = IntPtr.Zero;
            var    hr  = ComPointer.AcquireLatestFrame(out ptr);

            if (hr != 0)
            {
                throw new Exception(hr.ToString());
            }

            return(new BodyFrame(ptr));
        }
コード例 #2
0
 public ColorFrame AcquireLatestFrame()
 {
     return(new ColorFrame(ComPointer.AcquireLatestFrame()));
 }