C# Class VncSharpWpf.Framebuffer

Properties of a VNC Framebuffer, and its Pixel Format.
Exibir arquivo Open project: nakano531/VncSharpWpf Class Usage Examples

Public Methods

Method Description
Framebuffer ( int width, int height ) : System

Creates a new Framebuffer with (width x height) pixels.

FromPixelFormat ( byte b, int width, int height ) : Framebuffer

Given the dimensions and 16-byte PIXEL_FORMAT record from the VNC Host, deserialize this into a Framebuffer object.

GetPixelArray ( ) : int[]
ToPixelFormat ( ) : byte[]

When communicating with the VNC Server, bytes are used to represent many of the values above. However, internally it is easier to use Integers. This method provides a translation between the two worlds.

this ( int index ) : int

An indexer to allow access to the internal pixel buffer.

Method Details

Framebuffer() public method

Creates a new Framebuffer with (width x height) pixels.
public Framebuffer ( int width, int height ) : System
width int The width in pixels of the remote desktop.
height int The height in pixels of the remote desktop.
return System

FromPixelFormat() public static method

Given the dimensions and 16-byte PIXEL_FORMAT record from the VNC Host, deserialize this into a Framebuffer object.
public static FromPixelFormat ( byte b, int width, int height ) : Framebuffer
b byte The 16-byte PIXEL_FORMAT record.
width int The width in pixels of the remote desktop.
height int The height in pixles of the remote desktop.
return Framebuffer

GetPixelArray() public method

public GetPixelArray ( ) : int[]
return int[]

ToPixelFormat() public method

When communicating with the VNC Server, bytes are used to represent many of the values above. However, internally it is easier to use Integers. This method provides a translation between the two worlds.
public ToPixelFormat ( ) : byte[]
return byte[]

this() public method

An indexer to allow access to the internal pixel buffer.
public this ( int index ) : int
index int
return int