|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Public Member Functions | |
| ColorSpace | getColorSpace () |
| Returns the color space of the pixel data. More... | |
| int | getComponentCount () |
| Returns the number of components of the pixel data. More... | |
| int | getWidth () |
| Returns the width of the image. More... | |
| int | getHeight () |
| Returns the height of the image. More... | |
| boolean | getHasReversedChannels () |
| Returns true if data has the channels reversed to BGR or BGRA, otherwise RGB or RGBA is expected. More... | |
| int | getGLFormat () |
| Returns the OpenGL format for this texture; e.g. More... | |
| int | getGLType () |
| Returns the OpenGL data type: GL.GL_UNSIGNED_BYTE. More... | |
| int | getBytesPerPixel () |
| Returns the bytes per pixel. More... | |
| ByteBuffer | getData () |
| Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D. More... | |
| String | toString () |
Static Public Member Functions | |
| static JPEGImage | read (final InputStream in, final ColorSpace cs) throws IOException |
| Reads a JPEG image from the specified InputStream, using the given color space for storage. More... | |
| static JPEGImage | read (final InputStream in) throws IOException |
Reads a JPEG image from the specified InputStream, using the ColorSpace#RGB. More... | |
Definition at line 42 of file JPEGImage.java.
| int com.jogamp.opengl.util.texture.spi.JPEGImage.getBytesPerPixel | ( | ) |
Returns the bytes per pixel.
Definition at line 169 of file JPEGImage.java.
| ColorSpace com.jogamp.opengl.util.texture.spi.JPEGImage.getColorSpace | ( | ) |
Returns the color space of the pixel data.
Definition at line 148 of file JPEGImage.java.
| int com.jogamp.opengl.util.texture.spi.JPEGImage.getComponentCount | ( | ) |
Returns the number of components of the pixel data.
Definition at line 151 of file JPEGImage.java.
| ByteBuffer com.jogamp.opengl.util.texture.spi.JPEGImage.getData | ( | ) |
Returns the raw data for this texture in the correct (bottom-to-top) order for calls to glTexImage2D.
Definition at line 173 of file JPEGImage.java.
| int com.jogamp.opengl.util.texture.spi.JPEGImage.getGLFormat | ( | ) |
Returns the OpenGL format for this texture; e.g.
GL.GL_LUMINANCE, GL.GL_RGB or GL.GL_RGBA.
Definition at line 163 of file JPEGImage.java.
| int com.jogamp.opengl.util.texture.spi.JPEGImage.getGLType | ( | ) |
Returns the OpenGL data type: GL.GL_UNSIGNED_BYTE.
Definition at line 166 of file JPEGImage.java.
| boolean com.jogamp.opengl.util.texture.spi.JPEGImage.getHasReversedChannels | ( | ) |
Returns true if data has the channels reversed to BGR or BGRA, otherwise RGB or RGBA is expected.
Definition at line 160 of file JPEGImage.java.
| int com.jogamp.opengl.util.texture.spi.JPEGImage.getHeight | ( | ) |
Returns the height of the image.
Definition at line 157 of file JPEGImage.java.
| int com.jogamp.opengl.util.texture.spi.JPEGImage.getWidth | ( | ) |
Returns the width of the image.
Definition at line 154 of file JPEGImage.java.
|
static |
Reads a JPEG image from the specified InputStream, using the ColorSpace#RGB.
Definition at line 59 of file JPEGImage.java.
|
static |
Reads a JPEG image from the specified InputStream, using the given color space for storage.
| in | |
| cs | Storage color space, either ColorSpace#RGB or ColorSpace#YCbCr. ColorSpace#YCCK and ColorSpace#CMYK will throw an exception! |
| IOException |
Definition at line 54 of file JPEGImage.java.
| String com.jogamp.opengl.util.texture.spi.JPEGImage.toString | ( | ) |
Definition at line 176 of file JPEGImage.java.