public abstract class Pixels
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Pixels.Format
The Format specifies the native byte order of the
underlying chunk of image data.
|
Modifier and Type | Field and Description |
---|---|
protected java.nio.ByteBuffer |
bytes |
protected int |
bytesPerComponent |
protected int |
height |
protected java.nio.IntBuffer |
ints |
private float |
scale |
protected int |
width |
Modifier | Constructor and Description |
---|---|
protected |
Pixels(int width,
int height,
java.nio.ByteBuffer pixels) |
protected |
Pixels(int width,
int height,
java.nio.IntBuffer pixels) |
protected |
Pixels(int width,
int height,
java.nio.IntBuffer pixels,
float scale) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
_attachByte(long ptr,
int w,
int h,
java.nio.ByteBuffer bytes,
byte[] array,
int offset) |
protected abstract void |
_attachInt(long ptr,
int w,
int h,
java.nio.IntBuffer ints,
int[] array,
int offset) |
protected abstract void |
_fillDirectByteBuffer(java.nio.ByteBuffer bb) |
java.nio.ByteBuffer |
asByteBuffer() |
void |
asByteBuffer(java.nio.ByteBuffer bb) |
private void |
attachData(long ptr) |
boolean |
equals(java.lang.Object object) |
int |
getBytesPerComponent() |
int |
getHeight() |
int |
getHeightUnsafe() |
static int |
getNativeFormat() |
java.nio.Buffer |
getPixels() |
float |
getScale() |
float |
getScaleUnsafe() |
int |
getWidth() |
int |
getWidthUnsafe() |
int |
hashCode() |
protected final int width
protected final int height
protected final int bytesPerComponent
protected final java.nio.ByteBuffer bytes
protected final java.nio.IntBuffer ints
private final float scale
protected Pixels(int width, int height, java.nio.ByteBuffer pixels)
protected Pixels(int width, int height, java.nio.IntBuffer pixels)
protected Pixels(int width, int height, java.nio.IntBuffer pixels, float scale)
public static int getNativeFormat()
public final float getScale()
public final float getScaleUnsafe()
public final int getWidth()
public final int getWidthUnsafe()
public final int getHeight()
public final int getHeightUnsafe()
public final int getBytesPerComponent()
public final java.nio.Buffer getPixels()
public final java.nio.ByteBuffer asByteBuffer()
public final void asByteBuffer(java.nio.ByteBuffer bb)
private void attachData(long ptr)
protected abstract void _fillDirectByteBuffer(java.nio.ByteBuffer bb)
protected abstract void _attachInt(long ptr, int w, int h, java.nio.IntBuffer ints, int[] array, int offset)
protected abstract void _attachByte(long ptr, int w, int h, java.nio.ByteBuffer bytes, byte[] array, int offset)
public final boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object