public class PixelUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
PixelUtils() |
Modifier and Type | Method and Description |
---|---|
static ByteToBytePixelConverter |
getB2BConverter(PixelGetter<java.nio.ByteBuffer> src,
PixelSetter<java.nio.ByteBuffer> dst) |
static ByteToIntPixelConverter |
getB2IConverter(PixelGetter<java.nio.ByteBuffer> src,
PixelSetter<java.nio.IntBuffer> dst) |
static BytePixelGetter |
getByteGetter(PixelFormat<java.nio.ByteBuffer> pf) |
static BytePixelSetter |
getByteSetter(WritablePixelFormat<java.nio.ByteBuffer> pf) |
static <T extends java.nio.Buffer,U extends java.nio.Buffer> |
getConverter(PixelGetter<T> src,
PixelSetter<U> dst) |
static <T extends java.nio.Buffer> |
getGetter(PixelFormat<T> pf) |
static IntToBytePixelConverter |
getI2BConverter(PixelGetter<java.nio.IntBuffer> src,
PixelSetter<java.nio.ByteBuffer> dst) |
static IntToIntPixelConverter |
getI2IConverter(PixelGetter<java.nio.IntBuffer> src,
PixelSetter<java.nio.IntBuffer> dst) |
static IntPixelGetter |
getIntGetter(PixelFormat<java.nio.IntBuffer> pf) |
static IntPixelSetter |
getIntSetter(WritablePixelFormat<java.nio.IntBuffer> pf) |
static <T extends java.nio.Buffer> |
getSetter(WritablePixelFormat<T> pf) |
static int |
NonPretoPre(int nonpre) |
static int |
NonPretoPre(int nonpre,
int alpha) |
static int |
PretoNonPre(int pre) |
static int |
PreToNonPre(int pre,
int alpha) |
static int |
RgbToGray(int xrgb) |
static int |
RgbToGray(int r,
int g,
int b) |
public static int RgbToGray(int r, int g, int b)
public static int RgbToGray(int xrgb)
public static int NonPretoPre(int nonpre, int alpha)
public static int PreToNonPre(int pre, int alpha)
public static int NonPretoPre(int nonpre)
public static int PretoNonPre(int pre)
public static BytePixelGetter getByteGetter(PixelFormat<java.nio.ByteBuffer> pf)
public static IntPixelGetter getIntGetter(PixelFormat<java.nio.IntBuffer> pf)
public static <T extends java.nio.Buffer> PixelGetter<T> getGetter(PixelFormat<T> pf)
public static BytePixelSetter getByteSetter(WritablePixelFormat<java.nio.ByteBuffer> pf)
public static IntPixelSetter getIntSetter(WritablePixelFormat<java.nio.IntBuffer> pf)
public static <T extends java.nio.Buffer> PixelSetter<T> getSetter(WritablePixelFormat<T> pf)
public static <T extends java.nio.Buffer,U extends java.nio.Buffer> PixelConverter<T,U> getConverter(PixelGetter<T> src, PixelSetter<U> dst)
public static ByteToBytePixelConverter getB2BConverter(PixelGetter<java.nio.ByteBuffer> src, PixelSetter<java.nio.ByteBuffer> dst)
public static ByteToIntPixelConverter getB2IConverter(PixelGetter<java.nio.ByteBuffer> src, PixelSetter<java.nio.IntBuffer> dst)
public static IntToBytePixelConverter getI2BConverter(PixelGetter<java.nio.IntBuffer> src, PixelSetter<java.nio.ByteBuffer> dst)
public static IntToIntPixelConverter getI2IConverter(PixelGetter<java.nio.IntBuffer> src, PixelSetter<java.nio.IntBuffer> dst)