C# Class VncSharpWpf.Encodings.EncodedRectangle

Abstract class representing an Encoded Rectangle to be read, decoded, and drawn.
Inheritance: IDesktopUpdater
Mostra file Open project: nakano531/VncSharpWpf

Protected Properties

Property Type Description
framebuffer Framebuffer
preader PixelReader
rectangle System.Drawing.Rectangle
rfb RfbProtocol

Public Methods

Method Description
Decode ( ) : void

Obtain all necessary information from VNC Host (i.e., read) in order to Draw the rectangle, and store in colours[].

Draw ( System.Windows.Media.Imaging.WriteableBitmap desktop ) : void

After calling Decode() an EncodedRectangle can be drawn to a Bitmap, which is the local representation of the remote desktop.

EncodedRectangle ( RfbProtocol rfb, Framebuffer framebuffer, Rectangle rectangle, int encoding ) : System

Protected Methods

Method Description
FillRectangle ( Rectangle rect ) : void

Fills the given Rectangle with pixel values read from the server (i.e., each pixel may have its own value).

FillRectangle ( Rectangle rect, int colour ) : void

Fills the given Rectangle with a solid colour (i.e., all pixels will have the same value--colour).

Method Details

Decode() public abstract method

Obtain all necessary information from VNC Host (i.e., read) in order to Draw the rectangle, and store in colours[].
public abstract Decode ( ) : void
return void

Draw() public method

After calling Decode() an EncodedRectangle can be drawn to a Bitmap, which is the local representation of the remote desktop.
public Draw ( System.Windows.Media.Imaging.WriteableBitmap desktop ) : void
desktop System.Windows.Media.Imaging.WriteableBitmap The image the represents the remote desktop. NOTE: this image will be altered.
return void

EncodedRectangle() public method

public EncodedRectangle ( RfbProtocol rfb, Framebuffer framebuffer, Rectangle rectangle, int encoding ) : System
rfb RfbProtocol
framebuffer Framebuffer
rectangle System.Drawing.Rectangle
encoding int
return System

FillRectangle() protected method

Fills the given Rectangle with pixel values read from the server (i.e., each pixel may have its own value).
protected FillRectangle ( Rectangle rect ) : void
rect System.Drawing.Rectangle The rectangle to be filled.
return void

FillRectangle() protected method

Fills the given Rectangle with a solid colour (i.e., all pixels will have the same value--colour).
protected FillRectangle ( Rectangle rect, int colour ) : void
rect System.Drawing.Rectangle The rectangle to be filled.
colour int The colour to use when filling the rectangle.
return void

Property Details

framebuffer protected_oe property

protected Framebuffer framebuffer
return Framebuffer

preader protected_oe property

protected PixelReader,VncSharpWpf.Encodings preader
return PixelReader

rectangle protected_oe property

protected Rectangle,System.Drawing rectangle
return System.Drawing.Rectangle

rfb protected_oe property

protected RfbProtocol rfb
return RfbProtocol