Package com.jme3.util

Class AndroidScreenshots


  • public final class AndroidScreenshots
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void convertScreenShot​(java.nio.ByteBuffer buf, android.graphics.Bitmap bitmapImage)
      Convert OpenGL GLES20.GL_RGBA to Bitmap.Config.ARGB_8888 and store result in a Bitmap
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • convertScreenShot

        public static void convertScreenShot​(java.nio.ByteBuffer buf,
                                             android.graphics.Bitmap bitmapImage)
        Convert OpenGL GLES20.GL_RGBA to Bitmap.Config.ARGB_8888 and store result in a Bitmap
        Parameters:
        buf - ByteBuffer that has the pixel color data from OpenGL
        bitmapImage - Bitmap to be used after converting the data