| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private final double[] |
| Access | Constructor and Description |
|---|---|
| public | PNGPixelRect(final PixelFormat pixelformat, final DimensionImmutable size, final int strideInBytes, final boolean
see isGLOriented, final ByteBuffer pixels, final double dpiX, final double dpiY)isGLOriented().Creates a PNGPixelRect from data supplied by the end user. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public double[] | |
| private static final int | getPixelLUMToAny(final PixelFormat dest_fmt, final ByteBuffer d, int dOff, final byte lum, final byte alpha)
|
| private static final int | getPixelRGBA8ToAny(final PixelFormat dest_fmt, final ByteBuffer d, int dOff, final int[] scanline, final int lineOff, final boolean srcHasAlpha)
|
| private static final int | getPixelRGBSame(final ByteBuffer d, int dOff, final int[] scanline, final int lineOff, final int bpp)
|
| public static PNGPixelRect | Returns: the newly created PNGPixelRect instanceinput stream in, final PixelFormat ddestFmt, final boolean if true, using a direct NIO buffer, otherwise an array backed buffer destDirectBuffer, final int used if greater than PNG's stride, otherwise using PNG's stride. Stride is width * bytes-per-pixel. destMinStrideInBytes, final boolean destIsGLOriented)Reads a PNG image from the specified InputStream. |
| private int | setPixelRGBA8(final ImageLine line, final int lineOff, final ByteBuffer src, final int srcOff, final int bytesPerPixel, final boolean hasAlpha)
|
| private static void | setPixelRGBA8(final PixelFormat pixelformat, final ImageLine line, final int lineOff, final int srcPix, final int bytesPerPixel, final boolean hasAlpha)
|
| public void | |
| public static void | write(final PixelFormat pixelformat, final DimensionImmutable size, int strideInPixels, final boolean isGLOriented, final IntBuffer pixels, final double dpiX, final double dpiY, final OutputStream outstream, final boolean closeOutstream)
|
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| dpi | back to summary |
|---|---|
| private final double[] dpi | |
| PNGPixelRect | back to summary |
|---|---|
| public PNGPixelRect(final PixelFormat pixelformat, final DimensionImmutable size, final int strideInBytes, final boolean isGLOriented, final ByteBuffer pixels, final double dpiX, final double dpiY) Creates a PNGPixelRect from data supplied by the end user. Shares data with the passed ByteBuffer.
| |
| PNGPixelRect | back to summary |
|---|---|
| public PNGPixelRect(final PixelRectangle src, final double dpiX, final double dpiY) | |
| getDpi | back to summary |
|---|---|
| public double[] getDpi() Returns the dpi of the image. | |
| getPixelLUMToAny | back to summary |
|---|---|
| private static final int getPixelLUMToAny(final PixelFormat dest_fmt, final ByteBuffer d, int dOff, final byte lum, final byte alpha) | |
| getPixelRGBA8ToAny | back to summary |
|---|---|
| private static final int getPixelRGBA8ToAny(final PixelFormat dest_fmt, final ByteBuffer d, int dOff, final int[] scanline, final int lineOff, final boolean srcHasAlpha) | |
| getPixelRGBSame | back to summary |
|---|---|
| private static final int getPixelRGBSame(final ByteBuffer d, int dOff, final int[] scanline, final int lineOff, final int bpp) | |
| read | back to summary |
|---|---|
| public static PNGPixelRect read(final InputStream in, final PixelFormat ddestFmt, final boolean destDirectBuffer, final int destMinStrideInBytes, final boolean destIsGLOriented) throws IOException Reads a PNG image from the specified InputStream. Implicitly converts the image to match the desired:
| |
| setPixelRGBA8 | back to summary |
|---|---|
| private int setPixelRGBA8(final ImageLine line, final int lineOff, final ByteBuffer src, final int srcOff, final int bytesPerPixel, final boolean hasAlpha) | |
| setPixelRGBA8 | back to summary |
|---|---|
| private static void setPixelRGBA8(final PixelFormat pixelformat, final ImageLine line, final int lineOff, final int srcPix, final int bytesPerPixel, final boolean hasAlpha) | |
| write | back to summary |
|---|---|
| public void write(final OutputStream outstream, final boolean closeOutstream) throws IOException | |
| write | back to summary |
|---|---|
| public static void write(final PixelFormat pixelformat, final DimensionImmutable size, int strideInPixels, final boolean isGLOriented, final IntBuffer pixels, final double dpiX, final double dpiY, final OutputStream outstream, final boolean closeOutstream) throws IOException | |