Core Optical, Inc.
SourceData CopyDataRegion Method Industrial Strength, Scientific Grade
Copy the data from the current SourceData object into the target SourceData object, overwriting any data in the specified location of the target.

Namespace: PrecisionImage
Assembly: PrecisionImage (in PrecisionImage.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public void CopyDataRegion(
	int sourceChannel,
	Int32Rect sourceRect,
	SourceData targetData,
	int targetChannel,
	int targetRow,
	int targetColumn
)

Parameters

sourceChannel
Type: OnlineSystem Int32
An OnlineInt32 type specifying the source channel of the data to be copied.
sourceRect
Type: OnlineSystem.Windows Int32Rect
An OnlineInt32Rect object specifying the region of the source data to copy from.
targetData
Type: PrecisionImage SourceData
A SourceData object to which the data is to be copied.
targetChannel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel of the target object to copy to.
targetRow
Type: OnlineSystem Int32
An OnlineInt32 type indicating the (zero index-based) row to copy to.
targetColumn
Type: OnlineSystem Int32
An OnlineInt32 type indicating the (zero index-based) column to copy to.
Exceptions

ExceptionCondition
OnlineSystem ArgumentOutOfRangeException Thrown when sourceChannel specifies a channel that doesn't exist in the source data object.
OnlineSystem ArgumentNullException Thrown when targetData is null.
OnlineSystem ArgumentOutOfRangeException Thrown when targetChannel specifies a channel that does not exist in the target data object.
OnlineSystem ArgumentOutOfRangeException Thrown when sourceRect indicates a region that is not completely contained within source data object.
OnlineSystem ArgumentOutOfRangeException Thrown when sourceRect indicates a region that is not completely contained within target data object.
OnlineSystem ArgumentOutOfRangeException Thrown when targetRow is negative or too large to accomodate sourceRect.
OnlineSystem ArgumentOutOfRangeException Thrown when targetColumn is negative or too large to accomodate sourceRect.
See Also