|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PixelRectangle
Pixel Rectangle identified by it's hashCode().
The getPixels() are assumed to be immutable.
| Nested Class Summary | |
|---|---|
static class |
PixelRectangle.GenericPixelRect
Generic PixelRectangle implementation |
| Method Summary | |
|---|---|
PixelFormat |
getPixelformat()
Returns the PixelFormat. |
ByteBuffer |
getPixels()
Returns the pixels. |
DimensionImmutable |
getSize()
Returns the size, i.e. |
int |
getStride()
Returns stride in byte-size, i.e. |
int |
hashCode()
Computes a hash code over: pixelformat size stride isGLOriented pixels |
boolean |
isGLOriented()
Returns true if the memory is laid out in
OpenGL's coordinate system, origin at bottom left. |
String |
toString()
|
| Method Detail |
|---|
int hashCode()
Computes a hash code over:
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
hashCode in class ObjectPixelFormat getPixelformat()
PixelFormat.
DimensionImmutable getSize()
int getStride()
Must be >= getPixelformat().bytesPerPixel() * getSize().getWidth().
boolean isGLOriented()
true if the memory is laid out in
OpenGL's coordinate system, origin at bottom left.
Otherwise returns false, i.e. origin at top left.
ByteBuffer getPixels()
String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||