|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.image.Buffer
The Buffer
is an abstract class of an image buffer.
This is the base class of ByteBuffer, IntBuffer, etc.
Field Summary | |
protected boolean |
signed_flag
If the value is to be considered as signed, it is true. |
protected Size |
size
The image size. |
Constructor Summary | |
Buffer()
|
Method Summary | |
abstract Buffer |
cloneBuffer()
Creates a clone image buffer. |
int |
getDataCount()
Gets the number of data. |
Size |
getSize()
Gets the image size. |
abstract double |
getValue(int x,
int y)
Gets pixel value of a specified position. |
double |
getValueAt(int index)
Gets the value of data at the specified location. |
abstract void |
inverse()
Inverses white and black. |
abstract void |
read(java.io.DataInput input,
Size size)
Reads pixel values and set pixel values into the buffer. |
abstract void |
reverseHorizontally()
Reverses left to the right. |
abstract void |
reverseVertically()
Reverses upside down. |
void |
setSigned()
Sets the flag to be signed. |
abstract void |
setValue(int x,
int y,
double value)
Sets pixel value of a specified position. |
abstract void |
write(java.io.DataOutput output)
Write pixel values into the specified stream. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected Size size
protected boolean signed_flag
Constructor Detail |
public Buffer()
Method Detail |
public Size getSize()
public void setSigned()
public int getDataCount()
public double getValueAt(int index) throws java.lang.IndexOutOfBoundsException
index
- the location of the data.public abstract double getValue(int x, int y) throws java.lang.IndexOutOfBoundsException
x
- the x position.y
- the y position.public abstract void setValue(int x, int y, double value) throws java.lang.IndexOutOfBoundsException
x
- the x position.y
- the y position.value
- the value to set.public abstract void read(java.io.DataInput input, Size size) throws java.io.IOException
input
- the input stream pointing to the start of int
data.size
- the size of image.public abstract void write(java.io.DataOutput output) throws java.io.IOException
output
- the output stream.public abstract void inverse()
public abstract void reverseVertically()
public abstract void reverseHorizontally()
public abstract Buffer cloneBuffer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |