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.VncAssembly: 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: System Byte
A pointer to the upper-left corner of the source.
- sourceStride
- Type: System 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: System Byte
A pointer to the upper-left corner of the target.
- targetStride
- Type: System 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: System Int32
The X coordinate in the target that the leftmost pixel should be placed into.
- targetY (Optional)
- Type: System Int32
The Y coordinate in the target that the topmost pixel should be placed into.
See Also