我想做的是
this.colorBitmap = new WriteableBitmap(350, 600, dpiX, dpiY, PixelFormats.Bgr32, null);
this.image1.Source = this.colorBitmap;
我正在制作microsoft kinect程序。我想显示尺寸为350x640的彩色边框。 但是ColorImageFormat中只有选择是640x480和1280x960
(你知道,InfraredResolution640x480Fps30或RawBayerResolution1280x960Fps12的东西..)
当我在下面尝试时,流看起来很奇怪。充满了噪音
nui.ColorStream.Enable(ColorImageFormat.RgbResolution640x480Fps30);
this.colorPixels = new byte[nui.ColorStream.FramePixelDataLength];
this.colorBitmap = new WriteableBitmap(350, 600, 96.0, 96.0, PixelFormats.Bgr32, null);
this.image1.Source = this.colorBitmap;