Exemple #1
0
        public void DecodeTest()
        {
            var buffer      = new byte[] { 32, 24, 0, 1, 0, 255, 0, 255, 0, 255, 16, 8, 0, 0, 0, 0 };
            var pixelFormat = VncPixelFormat.Decode(buffer, 0);

            Assert.Equal(VncPixelFormat.RGB32, pixelFormat);
        }
Exemple #2
0
        private void HandleSetPixelFormat()
        {
            this.c.Receive(3);

            var pixelFormat = this.c.Receive(VncPixelFormat.Size);

            this.clientPixelFormat = VncPixelFormat.Decode(pixelFormat, 0);
        }
        void HandleSetPixelFormat()
        {
            _c.Receive(3);

            var pixelFormat = _c.Receive(VncPixelFormat.Size);

            _clientPixelFormat = VncPixelFormat.Decode(pixelFormat, 0);
        }