CastArray2DTFrom, TTo(CastArrayTFrom, TTo, Int32, Int32) Constructor

Initializes a new instance of the CastArray2DTFrom, TTo struct from an existing CastArrayTFrom, TTo using the specified height and width.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public CastArray2D(
	CastArray<TFrom, TTo> buffer,
	int height,
	int width
)

Parameters

buffer  CastArrayTFrom, TTo
The desired underlying buffer for the CastArray2DTFrom, TTo instance to be created. It must have sufficient capacity for the specified dimensions.
height  Int32
The height of the array to be created.
width  Int32
The width of the array to be created.

See Also