Not essential at all, some methods are probably to be removed if future releases.
Warning
most methods for getting/setting values work currently only for integer base imageLines
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ImageLineHelper.
Computes some statistics for the line. |
| Modifier and Type | Field and Description |
|---|---|
| private static final double | |
| private static final double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| public static int | |
| pack-priv static int | |
| pack-priv static int | |
| public static int | |
| public static int | |
| public static String | |
| public static String | |
| public static double | |
| public static double | |
| public static int | |
| public static int[] | |
| public static byte[] | |
| public static int[] | Returns: R G B (A), one sample 0-255 per array element. Ready for pngw.writeRowInt()ImageLine as returned from PngReader line, final PngChunkPLTE Palette chunk pal, final PngChunkTRNS trns, int[] Preallocated array, optional buf)Given an indexed line with a palette, unpacks as a RGB array, or RGBA if a non nul PngChunkTRNS chunk is passed |
| public static int[] | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static int[] | |
| public static byte[] |
| BIG_VALUE | back to summary |
|---|---|
| private static final double BIG_VALUE | |
| BIG_VALUE_NEG | back to summary |
|---|---|
| private static final double BIG_VALUE_NEG | |
| ImageLineHelper | back to summary |
|---|---|
| public ImageLineHelper() | |
| clampTo_0_255 | back to summary |
|---|---|
| public static int clampTo_0_255(final int i) | |
| clampTo_0_65535 | back to summary |
|---|---|
| public static int clampTo_0_65535(final int i) | |
| clampTo_128_127 | back to summary |
|---|---|
| public static int clampTo_128_127(final int x) | |
| double2int | back to summary |
|---|---|
| public static int double2int(final ImageLine line, double d) | |
| double2intClamped | back to summary |
|---|---|
| public static int double2intClamped(final ImageLine line, double d) | |
| getMaskForPackedFormats | back to summary |
|---|---|
| pack-priv static int getMaskForPackedFormats(final int bitDepth) | |
| getMaskForPackedFormatsLs | back to summary |
|---|---|
| pack-priv static int getMaskForPackedFormatsLs(final int bitDepth) | |
| getPixelARGB8 | back to summary |
|---|---|
| public static int getPixelARGB8(final ImageLine line, final int column) | |
| getPixelRGB8 | back to summary |
|---|---|
| public static int getPixelRGB8(final ImageLine line, final int column) integer packed R G B only for bitdepth=8! (does not check!) | |
| infoFirstLastPixels | back to summary |
|---|---|
| public static String infoFirstLastPixels(final ImageLine line) Just for basic info or debugging. Shows values for first and last pixel. Does not include alpha | |
| infoFull | back to summary |
|---|---|
| public static String infoFull(final ImageLine line) | |
| int2double | back to summary |
|---|---|
| public static double int2double(final ImageLine line, final int p) | |
| int2doubleClamped | back to summary |
|---|---|
| public static double int2doubleClamped(final ImageLine line, final int p) | |
| interpol | back to summary |
|---|---|
| public static int interpol(final int a, final int b, final int c, final int d, final double dx, final double dy) | |
| pack | back to summary |
|---|---|
| public static int[] pack(final ImageInfo imgInfo, final int[] src, int[] dst, final boolean scale) Packs scanline (for bitdepth 1-2-4) from array into the scanline
If | |
| pack | back to summary |
|---|---|
| public static byte[] pack(final ImageInfo imgInfo, final byte[] src, byte[] dst, final boolean scale) | |
| palette2rgb | back to summary |
|---|---|
| public static int[] palette2rgb(ImageLine line, final PngChunkPLTE pal, final PngChunkTRNS trns, int[] buf) Given an indexed line with a palette, unpacks as a RGB array, or RGBA if a non nul PngChunkTRNS chunk is passed
| |
| palette2rgb | back to summary |
|---|---|
| public static int[] palette2rgb(final ImageLine line, final PngChunkPLTE pal, final int[] buf) | |
| setPixelRGB8 | back to summary |
|---|---|
| public static void setPixelRGB8(final ImageLine line, int col, final int r, final int g, final int b) | |
| setPixelRGB8 | back to summary |
|---|---|
| public static void setPixelRGB8(final ImageLine line, final int col, final int rgb) | |
| setPixelRGBA8 | back to summary |
|---|---|
| public static void setPixelRGBA8(final ImageLine line, int col, final int r, final int g, final int b, final int a) | |
| setPixelRGBA8 | back to summary |
|---|---|
| public static void setPixelRGBA8(final ImageLine line, final int col, final int rgb) | |
| setPixelsRGB8 | back to summary |
|---|---|
| public static void setPixelsRGB8(final ImageLine line, final int[] rgb) | |
| setPixelsRGBA8 | back to summary |
|---|---|
| public static void setPixelsRGBA8(final ImageLine line, final int[] rgb) | |
| setValD | back to summary |
|---|---|
| public static void setValD(final ImageLine line, final int i, final double d) | |
| unpack | back to summary |
|---|---|
| public static int[] unpack(final ImageInfo imgInfo, final int[] src, int[] dst, final boolean scale) Unpacks scanline (for bitdepth 1-2-4) into a array You can (OPTIONALLY) pass an preallocated array, that will be filled and returned. If null, it will be allocated
If
You probably should use | |
| unpack | back to summary |
|---|---|
| public static byte[] unpack(final ImageInfo imgInfo, final byte[] src, byte[] dst, final boolean scale) | |
| Modifier and Type | Field and Description |
|---|---|
| public final int | |
| public double[] | |
| public double | |
| public double[] | |
| public double | |
| public double[] | |
| public double[] | |
| public double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| channels | back to summary |
|---|---|
| public final int channels | |
| maxdif | back to summary |
|---|---|
| public double[] maxdif | |
| maxlum | back to summary |
|---|---|
| public double maxlum | |
| maxv | back to summary |
|---|---|
| public double[] maxv | |
| minlum | back to summary |
|---|---|
| public double minlum | |
| minv | back to summary |
|---|---|
| public double[] minv | |
| prom | back to summary |
|---|---|
| public double[] prom | |
| promlum | back to summary |
|---|---|
| public double promlum | |
| ImageLineStats | back to summary |
|---|---|
| public ImageLineStats(final ImageLine line) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |