You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can run the same sample on one machine it the cropping works, insofar as if I set the CropWidthPixels & CropHeightPixels it will maintain the aspect ration. However, on other machines the crop selection, does not restrict the aspect ratio--I can resize the crop selection to anything I desire. I'm not sure if it is dependent on the version of the Photo App itself or something else. I am installing the sample App from the Store.
Here is the code I am using:
StorageFile file = await temp.CreateFileAsync("current_image.jpg", CreationCollisionOption.ReplaceExisting);
var token = SharedStorageAccessManager.AddFile(file);
var options = new LauncherOptions();
options.TargetApplicationPackageFamilyName = "Microsoft.Windows.Photos_8wekyb3d8bbwe";
options.DisplayApplicationPicker = true;
var parameters = new ValueSet();
parameters.Add("CropWidthPixels", (int)size.Width);
parameters.Add("CropHeightPixels", (int)size.Height);
parameters.Add("ShowCamera", false);
parameters.Add("DestinationToken", token);
// Launches the app and wait for results
var result = await Launcher.LaunchUriForResultsAsync(new Uri("microsoft.windows.photos.crop:"), options, parameters);
When it works: Photo App Version 16.511.8780.0
When it doesn't: Photo App Version 17.313.10010.0
The text was updated successfully, but these errors were encountered:
I can run the same sample on one machine it the cropping works, insofar as if I set the CropWidthPixels & CropHeightPixels it will maintain the aspect ration. However, on other machines the crop selection, does not restrict the aspect ratio--I can resize the crop selection to anything I desire. I'm not sure if it is dependent on the version of the Photo App itself or something else. I am installing the sample App from the Store.
Here is the code I am using:
When it works: Photo App Version 16.511.8780.0
When it doesn't: Photo App Version 17.313.10010.0
The text was updated successfully, but these errors were encountered: