public static MemoryMappedTexture32bpp ToMemoryMappedTexture(this byte[] pixels) { var tex = new MemoryMappedTexture32bpp(new SharpDX.Size2(KinectManager.ColorWidth, KinectManager.ColorHeight)); tex.FillWith(pixels); return(tex); }
public static MemoryMappedTexture32bpp BGRAToMemoryMappedTextureARGB(this byte[] bgra) { var tex = new MemoryMappedTexture32bpp(new SharpDX.Size2(KinectManager.ColorWidth, KinectManager.ColorHeight)); tex.FillWith(bgra.Reverse()); return(tex); }