I'm trying to get screenshots of my cross platform app at specific resolutions (for App Store submission). I'm working in Windows.
One obvious way of doing this is to create an Android emulator for a device with the target resolution. For instance, here's a device with 2688x1242 resolution:

However, if I take a screenshot on this device via the emulator's screenshot button:

The resulting image is always 1080p (portrait: 1080x1920).
How can I take a screenshot at the virtual device's native resolution?
I had a similar problem: I created a Pixel 5 emulator with a resolution of 1080x2340, but my screenshots always were 1080x2280.
I now noticed that the emulator's default display somehow was a Pixel 4 display with the wrong resolution.
I was able to fix this problem by editing my virtual device the following way:
Now I don't have a device frame anymore on my emulator but the screenshots are generated with the expected resolution.
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