public class MarvinImageMap
extends java.lang.Object
| Constructor and Description |
|---|
MarvinImageMap()
Constructor for null map
|
MarvinImageMap(int[][] mask) |
MarvinImageMap(int w,
int h)
Contructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRectRegion(int startX,
int startY,
int regionWidth,
int regionHeight,
int value) |
void |
clear()
Clear the mask for a new selection
|
int |
getHeight() |
int[][] |
getMask() |
int |
getWidth() |
void |
removePixel(int x,
int y,
int value)
Remove point from the mask.
|
void |
setPixel(int x,
int y,
int value)
Add a point to the mask.
|
int |
value(int x,
int y)
Get value for position x,y
|
public MarvinImageMap()
public MarvinImageMap(int w,
int h)
w - width of the image referenced by the maph - height of the image referenced by the mappublic MarvinImageMap(int[][] mask)
public int getWidth()
public int getHeight()
public void setPixel(int x,
int y,
int value)
x - y - public void removePixel(int x,
int y,
int value)
x - y - public int value(int x,
int y)
x - y - public void clear()
public int[][] getMask()
public void addRectRegion(int startX,
int startY,
int regionWidth,
int regionHeight,
int value)
startX - Start pixel of the region in x axesstartY - Start pixel of the region in y axesregionWidth - Width of the regionregionHeight - Height of the region