byte [ ] function ( boolean arg0 ) { final int loc0 = Gdx . graphics . getBackBufferWidth ( ) ; final int loc1 = Gdx . graphics . getBackBufferHeight ( ) ; return getFrameBufferPixels ( 0 , 0 , loc0 , loc1 , arg0 ) ; }
returns the default framebuffer contents as a byte array with a length equal to screen width height 4 . the byte will always contain rgba8888 data . because of differences in screen and image origins the framebuffer contents should be flipped along the y axis if you intend save them to disk as a bitmap . flipping is not a cheap operation , so use this functionality wisely . concode_field_sep PlaceHolder placeHolder concode_field_sep Pixmap getFrameBufferPixmap concode_elem_sep TextureRegion getFrameBufferTexture concode_elem_sep TextureRegion getFrameBufferTexture