class Image.ScaledAccessor<I extends java.nio.Buffer> extends Image.Accessor<I>
Modifier and Type | Field and Description |
---|---|
(package private) float |
pixelScale |
(package private) Image.Accessor<I> |
theDelegate |
Constructor and Description |
---|
ScaledAccessor(Image.Accessor<I> delegate,
float pixelScale) |
Modifier and Type | Method and Description |
---|---|
int |
getArgb(int x,
int y) |
void |
getPixels(int x,
int y,
int w,
int h,
WritablePixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] pixels,
int offset,
int scanlineBytes) |
void |
getPixels(int x,
int y,
int w,
int h,
WritablePixelFormat<java.nio.IntBuffer> pixelformat,
int[] pixels,
int offset,
int scanlineInts) |
<T extends java.nio.Buffer> |
getPixels(int x,
int y,
int w,
int h,
WritablePixelFormat<T> pixelformat,
T pixels,
int scanlineElems) |
PixelFormat<I> |
getPlatformPixelFormat() |
boolean |
isWritable() |
PlatformImage |
promoteToWritableImage() |
private int |
scale(int v) |
void |
setArgb(int x,
int y,
int argb) |
void |
setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.ByteBuffer> pixelformat,
byte[] pixels,
int offset,
int scanlineBytes) |
void |
setPixels(int x,
int y,
int w,
int h,
PixelFormat<java.nio.IntBuffer> pixelformat,
int[] pixels,
int offset,
int scanlineInts) |
<T extends java.nio.Buffer> |
setPixels(int x,
int y,
int w,
int h,
PixelFormat<T> pixelformat,
T pixels,
int scanlineElems) |
void |
setPixels(int dstx,
int dsty,
int w,
int h,
PixelReader reader,
int srcx,
int srcy) |
Image.Accessor<I extends java.nio.Buffer> theDelegate
float pixelScale
ScaledAccessor(Image.Accessor<I> delegate, float pixelScale)
private int scale(int v)
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 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 <T extends java.nio.Buffer> void getPixels(int x, int y, int w, int h, WritablePixelFormat<T> pixelformat, T pixels, int scanlineElems)
getPixels
in class Image.Accessor<I extends java.nio.Buffer>
public void getPixels(int x, int y, int w, int h, WritablePixelFormat<java.nio.ByteBuffer> pixelformat, byte[] pixels, int offset, int scanlineBytes)
getPixels
in class Image.Accessor<I extends java.nio.Buffer>
public void getPixels(int x, int y, int w, int h, WritablePixelFormat<java.nio.IntBuffer> pixelformat, int[] pixels, int offset, int scanlineInts)
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 pixels, int scanlineElems)
setPixels
in class Image.Accessor<I extends java.nio.Buffer>
public void setPixels(int x, int y, int w, int h, PixelFormat<java.nio.ByteBuffer> pixelformat, byte[] pixels, int offset, int scanlineBytes)
setPixels
in class Image.Accessor<I extends java.nio.Buffer>
public void setPixels(int x, int y, int w, int h, PixelFormat<java.nio.IntBuffer> pixelformat, int[] pixels, int offset, int scanlineInts)
setPixels
in class Image.Accessor<I extends java.nio.Buffer>
public void setPixels(int dstx, int dsty, int w, int h, PixelReader reader, int srcx, int srcy)
setPixels
in class Image.Accessor<I extends java.nio.Buffer>