Ejemplo n.º 1
0
 /// <summary>
 /// Sends the format to be used by the server when sending Framebuffer Updates. See RFB Doc v. 3.8 section 6.3.1.
 /// </summary>
 /// <param name="buffer">A Framebuffer telling the server how to encode pixel data. Typically this will be the same one sent by the server during initialization.</param>
 public void WriteSetPixelFormat(FrameBufferInfos infos)
 {
     writer.Write(SET_PIXEL_FORMAT);
     WritePadding(3);
     writer.Write(infos.ToPixelFormat());                        // 16-byte Pixel Format
     writer.Flush();
 }