abstract class Image.BaseAccessor<I extends java.nio.Buffer> extends Image.Accessor<I>
Modifier and Type | Field and Description |
---|---|
(package private) int |
offsetElems |
(package private) int |
pixelElems |
(package private) int |
scanlineElems |
(package private) I |
theBuffer |
(package private) PixelFormat<I> |
theFormat |
(package private) PixelGetter<I> |
theGetter |
(package private) PixelSetter<I> |
theSetter |
Constructor and Description |
---|
BaseAccessor(PixelFormat<I> theFormat,
I buffer,
int pixelStride) |
BaseAccessor(PixelFormat<I> theFormat,
PixelGetter<I> getter,
PixelSetter<I> setter,
I buffer,
int pixelStride) |
Modifier and Type | Method and Description |
---|---|
int |
getArgb(int x,
int y) |
I |
getBuffer() |
PixelGetter<I> |
getGetter() |
int |
getIndex(int x,
int y) |
<T extends java.nio.Buffer> |
getPixels(int x,
int y,
int w,
int h,
WritablePixelFormat<T> pixelformat,
T dstbuf,
int dstScanlineElems) |
PixelFormat<I> |
getPlatformPixelFormat() |
PixelSetter<I> |
getSetter() |
boolean |
isWritable() |
PlatformImage |
promoteToWritableImage() |
void |
setArgb(int x,
int y,
int argb) |
<T extends java.nio.Buffer> |
setPixels(int x,
int y,
int w,
int h,
PixelFormat<T> pixelformat,
T srcbuf,
int srcScanlineBytes) |
PixelFormat<I extends java.nio.Buffer> theFormat
PixelGetter<I extends java.nio.Buffer> theGetter
PixelSetter<I extends java.nio.Buffer> theSetter
I extends java.nio.Buffer theBuffer
int pixelElems
int scanlineElems
int offsetElems
BaseAccessor(PixelFormat<I> theFormat, I buffer, int pixelStride)
BaseAccessor(PixelFormat<I> theFormat, PixelGetter<I> getter, PixelSetter<I> setter, I buffer, int pixelStride)
public int getIndex(int x, int y)
public I getBuffer()
public PixelGetter<I> getGetter()
public PixelSetter<I> getSetter()
public PixelFormat<I> getPlatformPixelFormat()
getPlatformPixelFormat
in class Image.Accessor<I extends java.nio.Buffer>
public boolean isWritable()
isWritable
in class Image.Accessor<I extends java.nio.Buffer>
public PlatformImage promoteToWritableImage()
promoteToWritableImage
in class Image.Accessor<I extends java.nio.Buffer>
public int getArgb(int x, int y)
getArgb
in class Image.Accessor<I extends java.nio.Buffer>
public void setArgb(int x, int y, int argb)
setArgb
in class Image.Accessor<I extends java.nio.Buffer>
public <T extends java.nio.Buffer> void getPixels(int x, int y, int w, int h, WritablePixelFormat<T> pixelformat, T dstbuf, int dstScanlineElems)
getPixels
in class Image.Accessor<I extends java.nio.Buffer>
public <T extends java.nio.Buffer> void setPixels(int x, int y, int w, int h, PixelFormat<T> pixelformat, T srcbuf, int srcScanlineBytes)
setPixels
in class Image.Accessor<I extends java.nio.Buffer>