BinaryImage(Boolean) Constructor

Initializes a new instance of the BinaryImage struct using a bool[25]. The first 5 elements represent the first row (left to right), the next 5 elements represent the second row, and so on. Filled in cells are represented by and empty cells by .

Definition

Namespace: ProjectLCore.GamePieces
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public BinaryImage(
	bool[] array
)

Parameters

array  Boolean
The encoding of the image.

Exceptions

ArgumentExceptionBinary image must be 5x5

See Also