hashCode().
The getPixels() are assumed to be immutable.
| Modifier and Type | Class and Description |
|---|---|
| public static class | PixelRectangle.
Generic PixelRectangle implementation |
| Modifier and Type | Method and Description |
|---|---|
| public PixelFormat | |
| public ByteBuffer | |
| public DimensionImmutable | |
| public int | |
| public int | |
| public boolean | isGLOriented()
Returns |
| public String |
| getPixelformat | back to summary |
|---|---|
| public PixelFormat getPixelformat() Returns the | |
| getPixels | back to summary |
|---|---|
| public ByteBuffer getPixels() Returns the pixels. | |
| getSize | back to summary |
|---|---|
| public DimensionImmutable getSize() Returns the size, i.e. width and height. | |
| getStride | back to summary |
|---|---|
| public int getStride() Returns stride in byte-size, i.e. byte count from one line to the next.
Must be >= | |
| hashCode | back to summary |
|---|---|
| public 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.
| |
| isGLOriented | back to summary |
|---|---|
| public boolean isGLOriented() Returns | |
| toString | back to summary |
|---|---|
public String toString()
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private volatile boolean | |
| protected final boolean | |
| protected final PixelFormat | |
| protected final ByteBuffer | |
| protected final DimensionImmutable | |
| protected final int |
| Access | Constructor and Description |
|---|---|
| public | GenericPixelRect(final PixelFormat pixelformat, final DimensionImmutable size, int
stride in byte-size, i.e. byte count from one line to the next.
If not zero, value must be >= strideInBytes, final boolean isGLOriented, final ByteBuffer pixels)width * bytes-per-pixel.
If zero, stride is set to width * bytes-per-pixel.
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PixelFormat | getPixelformat()
Implements com. PixelFormat.
|
| public ByteBuffer | |
| public DimensionImmutable | getSize()
Implements com. |
| public int | getStride()
Implements com. |
| public int | hashCode()
Overrides java. Implements com. Computes a hash code over:
|
| public boolean | isGLOriented()
Implements com. true if the memory is laid out in
OpenGL's coordinate system, origin at bottom left.
|
| public final String | toString()
Overrides java. Implements com. |
| hashCode | back to summary |
|---|---|
| private int hashCode | |
| hashCodeComputed | back to summary |
|---|---|
| private volatile boolean hashCodeComputed | |
| isGLOriented | back to summary |
|---|---|
| protected final boolean isGLOriented | |
| pixelformat | back to summary |
|---|---|
| protected final PixelFormat pixelformat | |
| pixels | back to summary |
|---|---|
| protected final ByteBuffer pixels | |
| size | back to summary |
|---|---|
| protected final DimensionImmutable size | |
| strideInBytes | back to summary |
|---|---|
| protected final int strideInBytes | |
| GenericPixelRect | back to summary |
|---|---|
public GenericPixelRect(final PixelFormat pixelformat, final DimensionImmutable size, int strideInBytes, final boolean isGLOriented, final ByteBuffer pixels) throws IllegalArgumentException, IndexOutOfBoundsException
| |
| GenericPixelRect | back to summary |
|---|---|
| public GenericPixelRect(final PixelRectangle src) throws IllegalArgumentException, IndexOutOfBoundsException Copy ctor validating src.
| |
| getPixelformat | back to summary |
|---|---|
| public PixelFormat getPixelformat() Implements com. Doc from com. Returns the
| |
| getPixels | back to summary |
|---|---|
| public ByteBuffer getPixels() Implements com. Doc from com. Returns the pixels.
| |
| getSize | back to summary |
|---|---|
| public DimensionImmutable getSize() Implements com. Doc from com. Returns the size, i.e. width and height.
| |
| getStride | back to summary |
|---|---|
| public int getStride() Implements com. Doc from com. Returns stride in byte-size, i.e. byte count from one line to the next.
Must be >=
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements com. Doc from com. Computes a hash code over:
The hashCode shall be computed only once with first call and stored for later retrieval to enhance performance.
| |
| isGLOriented | back to summary |
|---|---|
| public boolean isGLOriented() Implements com. Doc from com. Returns
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Implements com. Doc from java. Returns a string representation of the object. | |