Esempio n. 1
0
        public static MemoryMappedTexture32bpp ToMemoryMappedTexture(this byte[] pixels)
        {
            var tex = new MemoryMappedTexture32bpp(new SharpDX.Size2(KinectManager.ColorWidth, KinectManager.ColorHeight));

            tex.FillWith(pixels);

            return(tex);
        }
Esempio n. 2
0
        public static MemoryMappedTexture32bpp BGRAToMemoryMappedTextureARGB(this byte[] bgra)
        {
            var tex = new MemoryMappedTexture32bpp(new SharpDX.Size2(KinectManager.ColorWidth, KinectManager.ColorHeight));

            tex.FillWith(bgra.Reverse());

            return(tex);
        }