public final class ByteMatrix extends Object
| Constructor and Description |
|---|
ByteMatrix(int width,
int height)
Create a ByteMatix of given width and height, with the values initialized to 0
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(byte value)
Resets the contents of the entire matrix to value
|
byte |
get(int x,
int y)
Get the value of the byte at (x,y)
|
byte[][] |
getArray() |
int |
getHeight() |
int |
getWidth() |
void |
set(int x,
int y,
byte value)
Set the value of the byte at (x,y)
|
void |
set(int x,
int y,
int value)
Set the value of the byte at (x,y)
|
String |
toString() |
public ByteMatrix(int width,
int height)
width - width of the matrixheight - height of the matrixpublic int getHeight()
public int getWidth()
public byte get(int x,
int y)
x - the width coordinatey - the height coordinatepublic byte[][] getArray()
public void set(int x,
int y,
byte value)
x - the width coordinatey - the height coordinatevalue - the new byte valuepublic void set(int x,
int y,
int value)
x - the width coordinatey - the height coordinatevalue - the new byte valuepublic void clear(byte value)
value - new value of every elementCopyright © 1998–2022 iText Group NV. All rights reserved.