CodeGlyphX logo
CodeGlyphX

API Reference

Class

BitMatrix

Namespace CodeGlyphX
Assembly CodeGlyphX
Modifiers sealed
Attributes
DefaultMember("Item")

A compact, bit-packed 2D boolean grid.

Inheritance

  • Object
  • BitMatrix

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Accepted by parameters

Constructors

public BitMatrix(Int32 width, Int32 height) #

Creates a new BitMatrix.

Parameters

width System.Int32 requiredposition: 0
height System.Int32 requiredposition: 1

Methods

public Void Clear() #
Returns: Void

Clears all bits to false.

public BitMatrix Clone() #
Returns: BitMatrix

Creates a deep copy of this matrix.

public Boolean Get(Int32 x, Int32 y) #
Returns: Boolean

Gets the value at (x, y).

Parameters

x System.Int32 requiredposition: 0
y System.Int32 requiredposition: 1
public Void Set(Int32 x, Int32 y, Boolean value) #
Returns: Void

Sets the value at (x, y).

Parameters

x System.Int32 requiredposition: 0
y System.Int32 requiredposition: 1
value System.Boolean requiredposition: 2
public Byte[] ToPackedBytes() #
Returns: Byte[]

Packs the matrix into row-major bytes (left-to-right, top-to-bottom).

Properties

public Int32 Width { get; } #

Gets the matrix width (in cells).

public Int32 Height { get; } #

Gets the matrix height (in cells).

public Boolean Item { get; set; } #

Gets or sets the value at (x, y).