ByteMatrix (ZXing 3.5.2 API)
Description: declaration: package: com.google.zxing.qrcode.encoder, class: ByteMatrix

Package com.google.zxing.qrcode.encoder

# Class ByteMatrix

java.lang.Object
com.google.zxing.qrcode.encoder.ByteMatrix

public final class ByteMatrix extends Object
JAVAPORT: The original code was a 2D array of ints, but since it only ever gets assigned -1, 0, and 1, I'm going to use less memory and go with bytes.

Author:
  dswitkin@google.com (Daniel Switkin)

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ByteMatrix(int width, int height)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `clear(byte value)`
  `byte`
  `get(int x, int y)`
  `byte[][]`
  `getArray()`
  `int`
  `getHeight()`
  `int`
  `getWidth()`
  `void`
  `set(int x, int y, boolean value)`
  `void`
  `set(int x, int y, byte value)`
  `void`
  `set(int x, int y, int value)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ByteMatrix

    public ByteMatrix(int width, int height)

- ## Method Details

  - ### getHeight

    public int getHeight()

  - ### getWidth

    public int getWidth()

  - ### get

    public byte get(int x, int y)

  - ### getArray

    public byte[][] getArray()
    Returns:
      an internal representation as bytes, in row-major order. array[y][x] represents point (x,y)

  - ### set

    public void set(int x, int y, byte value)

  - ### set

    public void set(int x, int y, int value)

  - ### set

    public void set(int x, int y, boolean value)

  - ### clear

    public void clear(byte value)

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`