I recently out a C++ code into my project to touch a button to capture screenshot and then move the image to iOS photo album. my app only work for Landscape in iPad devices
I have 2 problem here.
-
The captured screenshot orientation is upside down inverted. I have no idea why it get rotate upside down
-
I want the capture image to include my widgets, therefore in the script I set TRUE after RequestScreenshot like in below. But it captured a Sprite Atlas images (acttached) instead of the viewport camera. I tried it on a new blank project, it stil captured the same sprite atlas image.
FString AScreenshooter::RequestNewScreenshot ()
{
FString filename = "Image.png";
FScreenshotRequest::RequestScreenshot(filename, true, false);
return FScreenshotRequest::GetFilename();
}
Im not a programmer, the script is given by someone in the community too. Therefore I have zero knowledge in programming. Any help and comments are much appreciate. thanks