If your phone's display size is 320x480, then AndEngine performs screenCapture() at the same 1:1 resolution.
I tried changing the surface size... I tried generating the camera at double resolution... I tried scaling the mRenderSurfaceView....
But, the screenCapture() will always save the file in 320x480 resolution, i.e. the resolution of actual device.
So can anyone help me to show how can I get a screen capture in double resolution ?
Go to Display settings and set the highest resolution available for your device. Then, open Advanced scaling settings and allow Windows to fix apps, so they're not blurry. This option should always be turned on before you take a screenshot.
If you want to take screenshots on Windows, you can use the PrintScreen button or the Snipping Tool. With the PrintScreen button, users then have to paste the image into Paint or another program and save it in the desired format.
Looking at this answer, it backs up that you can't screen shot what is not being rendered.
The alternative mentioned is to render to a RenderTexture of applicable size instead. That other question has an example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With