Core Optical, Inc.
SourceData AssignChannelData Method ( Byte , Int32)Industrial Strength, Scientific Grade
Copies the entire contents of an array into the specified channel.

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

public void AssignChannelData(
	byte[] data,
	int channel
)

Parameters

data
Type:  OnlineSystem Byte 
An OnlineArray of type OnlineByte containing the data to copy.
channel
Type: OnlineSystem Int32
An OnlineInt32 indicating the data channel to populate.
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullException Thrown when data is null.
OnlineSystem ArgumentOutOfRangeException Thrown when the number of elements in data is not equal to the product of the rows and columns in the SourceData object.
OnlineSystem ArgumentOutOfRangeException Thrown when channel specifies a channel that does not exist.
Remarks

Use this method to quickly populate a data channel in a SourceData object with values. The number of elements in data must be equal to the number of elements (rows x columns) in the SourceData object or an exception will result.
See Also