C# Class VncSharpWpf.EncodedRectangleFactory

Factory class used to create derived EncodedRectangle objects at runtime based on data sent by VNC Server.
Afficher le fichier Open project: nakano531/VncSharpWpf Class Usage Examples

Méthodes publiques

Méthode Description
Build ( Rectangle rectangle, int encoding ) : EncodedRectangle

Creates an object type derived from EncodedRectangle, based on the value of encoding.

EncodedRectangleFactory ( RfbProtocol rfb, Framebuffer framebuffer ) : System

Creates an instance of the EncodedRectangleFactory using the connected RfbProtocol object and associated Framebuffer object.

Method Details

Build() public méthode

Creates an object type derived from EncodedRectangle, based on the value of encoding.
public Build ( Rectangle rectangle, int encoding ) : EncodedRectangle
rectangle System.Drawing.Rectangle A Rectangle object defining the bounds of the rectangle to be created
encoding int An Integer indicating the encoding type to be used for this rectangle. Used to determine the type of EncodedRectangle to create.
Résultat VncSharpWpf.Encodings.EncodedRectangle

EncodedRectangleFactory() public méthode

Creates an instance of the EncodedRectangleFactory using the connected RfbProtocol object and associated Framebuffer object.
public EncodedRectangleFactory ( RfbProtocol rfb, Framebuffer framebuffer ) : System
rfb RfbProtocol An RfbProtocol object that will be passed to any created EncodedRectangle objects. Must be non-null, already initialized, and connected.
framebuffer Framebuffer A Framebuffer object which will be used by any created EncodedRectangle objects in order to decode and draw rectangles locally.
Résultat System