Question by
Deadshot1994 · Apr 01, 2021 at 12:46 PM ·
iosscreenshot
Screenshot half black when sent to email on iPhone 11 Pro Max
I have an app where the user takes a photo (done with Screencapture.CaptureScreenshot) and can either save it to camera roll or send it to his email.
Saving to camera roll works as intended, and sending to email also works when the image is taken on an iPad with a single camera, however when I test it on my iPhone 11 Pro Max, I get the following result:
As you can see, most of the picture is cut off. Any help is kindly appreciated!
I am pasting my code as well:
public IEnumerator RecordFrame()
{
string filename = "ArcadiaEarth" + ".png";
string pathToSave = filename;
path1 = Application.persistentDataPath;
ScreenCapture.CaptureScreenshot(pathToSave);
yield return new WaitForEndOfFrame();
string imagePath = Path.Combine(path1, pathToSave);
SocialSharing.Instance.PostPictureCapture(imagePath);
SocialSharing.Instance.filePath = imagePath;
circleImage.enabled = true;
hamburgerMenuImg.enabled = true;
var texture = ScreenCapture.CaptureScreenshotAsTexture();
texture.name = "ArcadiaEarth.png";
SocialPage.Instance.PictureDisplay.GetComponent<RawImage>().texture = texture;
SocialSharing.Instance.screenShot = texture;
SocialPage.Instance.OpenPicturePreview();
}
Comment