MemoryArray(T).CopyFrom Method

FreeImage.NET

MemoryArrayTCopyFrom Method
Copies a range of elements from the array starting at the specified sourceIndex and pastes them to the unmanaged array starting at the specified destinationIndex. The length and the indexes are specified as 32-bit integers.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public void CopyFrom(
	T[] array,
	int sourceIndex,
	int destinationIndex,
	int length
)

Parameters

array
Type: T
The array that holds the data.
sourceIndex
Type: SystemInt32
A 32-bit integer that represents the index in the array at which copying begins.
destinationIndex
Type: SystemInt32
A 32-bit integer that represents the index in the unmanaged array at which storing begins.
length
Type: SystemInt32
A 32-bit integer that represents the number of elements to copy.
Exceptions
ExceptionCondition
ArgumentNullExceptionarray is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionsourceIndex is outside the range of valid indexes for the array or length is greater than the number of elements from index to the end of the array

-or-

destinationIndex is outside the range of valid indexes for the unmanaged array or length is greater than the number of elements from index to the end of the unmanaged array.
See Also