C# Class VncSharpWpf.EncodedRectangleFactory

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

Public Methods

Method 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 method

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.
return VncSharpWpf.Encodings.EncodedRectangle

EncodedRectangleFactory() public method

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.
return System