public abstract class Pixels extends 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 ByteBuffer |
bytes |
protected int |
bytesPerComponent |
protected int |
height |
protected IntBuffer |
ints |
protected int |
width |
Modifier | Constructor and Description |
---|---|
protected |
Pixels(int width,
int height,
ByteBuffer pixels) |
protected |
Pixels(int width,
int height,
IntBuffer pixels) |
protected |
Pixels(int width,
int height,
IntBuffer pixels,
float scale) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
_attachByte(long ptr,
int w,
int h,
ByteBuffer bytes,
byte[] array,
int offset) |
protected abstract void |
_attachInt(long ptr,
int w,
int h,
IntBuffer ints,
int[] array,
int offset) |
protected abstract void |
_fillDirectByteBuffer(ByteBuffer bb) |
ByteBuffer |
asByteBuffer() |
void |
asByteBuffer(ByteBuffer bb) |
boolean |
equals(Object object) |
int |
getBytesPerComponent() |
int |
getHeight() |
int |
getHeightUnsafe() |
static int |
getNativeFormat() |
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 ByteBuffer bytes
protected final IntBuffer ints
protected Pixels(int width, int height, ByteBuffer pixels)
protected Pixels(int width, int height, IntBuffer pixels)
protected Pixels(int width, int height, 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 Buffer getPixels()
public final ByteBuffer asByteBuffer()
public final void asByteBuffer(ByteBuffer bb)
protected abstract void _fillDirectByteBuffer(ByteBuffer bb)
protected abstract void _attachInt(long ptr, int w, int h, IntBuffer ints, int[] array, int offset)
protected abstract void _attachByte(long ptr, int w, int h, ByteBuffer bytes, byte[] array, int offset)
Copyright © 2020. All rights reserved.