Note that there are some explanatory texts on larger screens.

plurals
  1. POScreen Capture in andengine gives upside down mirror image
    primarykey
    data
    text
    <p>In my situation i haven't use RenderSurfaceView. I want to take a screen capture of my scene. But when i save the screen shot it shows upside down mirror image. Cant understand what im doing wrong here.</p> <p>Here is my code</p> <pre><code>attachChild(screenCapture); share_clicked = 1; final int viewWidth = (int)camera.getWidth(); final int viewHeight = (int)camera.getHeight(); Log.d("camera width", "View width :" + viewWidth); Log.d("camera height", "View height :" + viewHeight); File direct = new File( Environment.getExternalStorageDirectory() + "/Word"); if (!direct.exists()) { if (direct.mkdir()) ; // directory is created; } screenCapture.capture( viewWidth, viewHeight, direct.getAbsolutePath() + "/word" + System.currentTimeMillis() + ".png", new IScreenCaptureCallback() { public void onScreenCaptured( final String pFilePath) { activity .runOnUiThread(new Runnable() { public void run() { Toast.makeText( activity, "Image Successfully saved to 'Word' folder in SD Card.", Toast.LENGTH_SHORT) .show(); } }); } public void onScreenCaptureFailed( final String pFilePath, final Exception pException) { activity.runOnUiThread(new Runnable() { public void run() { Toast.makeText( activity, "Failed saving the image! Please check SD card.", Toast.LENGTH_SHORT) .show(); } }); } }); </code></pre> <p>![this is the screen shot i gets<a href="https://i.stack.imgur.com/FkVsr.png" rel="noreferrer">1</a></p> <p>It would be a great help if anyone could sought this out for me. Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload