BinaryImageOnesComplement Operator

Implements the operator ~. The complement of an image is the image where a cell is filled in if and only if the original image has the cell empty.

Definition

Namespace: ProjectLCore.GamePieces
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public static BinaryImage operator ~(
	BinaryImage image
)

Parameters

image  BinaryImage
The operator on the image.

Return Value

BinaryImage
The complement of the image.

Example

 
  #####        .....
  ##.##        ..#..
~ ##..#   ==   ..##.   
  #...#        .###.
  ##..#        ..##.

See Also