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 matrix
height - height of the matrix
public int getHeight()
public int getWidth()
public byte get(int x,
int y)
x - the width coordinate
y - the height coordinate
public byte[][] getArray()
public void set(int x,
int y,
byte value)
x - the width coordinate
y - the height coordinate
value - the new byte value
public void set(int x,
int y,
int value)
x - the width coordinate
y - the height coordinate
value - the new byte value
public void clear(byte value)
value - new value of every element
Copyright © 1998–2017 iText Group NV. All rights reserved.