MemoryArray(T).CopyTo Method (T[], Int32, Int32, Int32)

FreeImage.NET

MemoryArrayTCopyTo Method (T, Int32, Int32, Int32)
Copies a range of elements from the unmanaged array starting at the specified sourceIndex and pastes them to 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 CopyTo(
	T[] array,
	int sourceIndex,
	int destinationIndex,
	int length
)

Parameters

array
Type: T
The array that receives the data.
sourceIndex
Type: SystemInt32
A 32-bit integer that represents the index in the unmanaged array at which copying begins.
destinationIndex
Type: SystemInt32
A 32-bit integer that represents the index in the destination 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 unmanaged array or length is greater than the number of elements from index to the end of the unmanaged array

-or-

destinationIndex 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.
See Also