public interface PixelRectangle
hashCode()
.
The getPixels()
are assumed to be immutable.
Modifier and Type | Interface and Description |
---|---|
static class |
PixelRectangle.GenericPixelRect
Generic PixelRectangle implementation
|
Modifier and Type | Method and Description |
---|---|
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() |
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.
PixelFormat 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()
Copyright 2010 JogAmp Community.