C# Class VncSharpWpf.Encodings.EncodedRectangle

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

Protected Properties

Свойство Type Description
framebuffer Framebuffer
preader PixelReader
rectangle System.Drawing.Rectangle
rfb RfbProtocol

Méthodes publiques

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

Méthodes protégées

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

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

Draw() public méthode

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

EncodedRectangle() public méthode

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

FillRectangle() protected méthode

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

FillRectangle() protected méthode

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

Property Details

framebuffer protected_oe property

protected Framebuffer framebuffer
Résultat Framebuffer

preader protected_oe property

protected PixelReader,VncSharpWpf.Encodings preader
Résultat PixelReader

rectangle protected_oe property

protected Rectangle,System.Drawing rectangle
Résultat System.Drawing.Rectangle

rfb protected_oe property

protected RfbProtocol rfb
Résultat RfbProtocol