GLReadBufferUtil specialization allowing to
read out a frambuffer to an AWT BufferedImage
utilizing AWTPixelBufferProviderInt for further AWT processing.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AWTGLPixelBuffer | getAWTGLPixelBuffer()
Returns the |
| public BufferedImage | readPixelsToBufferedImage(final GL
the current GL context object. It's read drawable is being used as the pixel source. gl, final boolean flips the data vertically if awtOrientation)true.
The context's drawable GLDrawable#isGLOriented() state
is taken into account.
Vertical flipping is propagated to TextureData
and handled in a efficient manner there (TextureCoordinates and TextureIO writer).Read the drawable's pixels to TextureData and Texture, if requested at construction,
and returns an aligned |
| public BufferedImage | readPixelsToBufferedImage(final GL
the current GL context object. It's read drawable is being used as the pixel source. gl, final int readPixel x offset inX, final int readPixel y offset inY, final int optional readPixel width value, used if [1 .. drawable.width], otherwise using drawable.width inWidth, final int optional readPixel height, used if [1 .. drawable.height], otherwise using drawable.height inHeight, final boolean flips the data vertically if awtOrientation)true.
The context's drawable GLDrawable#isGLOriented() state
is taken into account.
Vertical flipping is propagated to TextureData
and handled in a efficient manner there (TextureCoordinates and TextureIO writer).Read the drawable's pixels to TextureData and Texture, if requested at construction,
and returns an aligned |
| AWTGLReadBufferUtil | back to summary |
|---|---|
| public AWTGLReadBufferUtil(final GLProfile glp, final boolean alpha) | |
| getAWTGLPixelBuffer | back to summary |
|---|---|
| public AWTGLPixelBuffer getAWTGLPixelBuffer() Returns the | |
| readPixelsToBufferedImage | back to summary |
|---|---|
| public BufferedImage readPixelsToBufferedImage(final GL gl, final boolean awtOrientation) Read the drawable's pixels to TextureData and Texture, if requested at construction,
and returns an aligned
| |
| readPixelsToBufferedImage | back to summary |
|---|---|
| public BufferedImage readPixelsToBufferedImage(final GL gl, final int inX, final int inY, final int inWidth, final int inHeight, final boolean awtOrientation) Read the drawable's pixels to TextureData and Texture, if requested at construction,
and returns an aligned
| |