Esempio n. 1
0
        public void Update(ColorFrameData frame)
        {
            if (width != frame.Width || height != frame.Height)
            {
                logger.Error("Size of DepthFrame does not match. Expected: {0}x{1}, Actual: {2}x{3}",
                    width, height, frame.Width, frame.Height);
            }
            else
            {
                bitmap.Lock();

                bitmap.WritePixels(
                        new Int32Rect(0, 0, bitmap.PixelWidth, bitmap.PixelHeight),
                        frame.Data,
                        bitmap.PixelWidth * sizeof(int),
                        0);

                bitmap.Unlock();
            }
        }
 public ColorFrameUpdatedEventArgs(ColorFrameData frame)
 {
     Frame = frame;
 }