C# Class VncSharpWpf.Framebuffer

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

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

FromPixelFormat() public static méthode

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.
Résultat Framebuffer

GetPixelArray() public méthode

public GetPixelArray ( ) : int[]
Résultat int[]

ToPixelFormat() public méthode

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[]
Résultat byte[]

this() public méthode

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