VncPixelFormat Copy Method ( Byte , Int32, VncPixelFormat, VncRectangle,  Byte , Int32, VncPixelFormat, Int32, Int32)RemoteViewing
Copies pixels between two byte arrays. A format conversion is performed if necessary. Be sure to lock SyncRoot first to avoid tearing, if the connection is active.

Namespace: RemoteViewing.Vnc
Assembly: RemoteViewing (in RemoteViewing.dll) Version: 0.9.1.0 (0.9.1.0)
Syntax

public static void Copy(
	byte[] source,
	int sourceStride,
	VncPixelFormat sourceFormat,
	VncRectangle sourceRectangle,
	byte[] target,
	int targetStride,
	VncPixelFormat targetFormat,
	int targetX = 0,
	int targetY = 0
)

Parameters

source
Type:  OnlineSystem Byte 
A pointer to the upper-left corner of the source.
sourceStride
Type: OnlineSystem Int32
The offset in the source between one Y coordinate and the next.
sourceFormat
Type: RemoteViewing.Vnc VncPixelFormat
The source pixel format.
sourceRectangle
Type: RemoteViewing.Vnc VncRectangle
The rectangle in the source to decode.
target
Type:  OnlineSystem Byte 
A pointer to the upper-left corner of the target.
targetStride
Type: OnlineSystem Int32
The offset in the target between one Y coordinate and the next.
targetFormat
Type: RemoteViewing.Vnc VncPixelFormat
The target pixel format.
targetX (Optional)
Type: OnlineSystem Int32
The X coordinate in the target that the leftmost pixel should be placed into.
targetY (Optional)
Type: OnlineSystem Int32
The Y coordinate in the target that the topmost pixel should be placed into.
See Also