private void Share() { // get image on result page var resultPage = UIEngine.FindInStack <ImitateResultPage>(); if (resultPage == null) { return; } var texture = resultPage.GetImage(); // navigate to display page var page = UIEngine.Forward <ImitateShareDisplayPage>(); page.SetImage(texture); }
private async void SavePhotoAsync() { // get image on result page var resultPage = UIEngine.FindInStack <ImitateResultPage>(); if (resultPage == null) { return; } var texture = resultPage.GetImage(); var base64 = ImitateUtil.TextureToBase64(texture); await Photo.SaveAsync(base64); ImitateUIService.Dialog("已保存"); }