Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ImageCroppingNavigationArgs.cs
2using NeuroAccessMaui.UI.Controls; // for Size
3
4
6{
11 {
13
21 public ImageCroppingNavigationArgs(ImageSource? source, TaskCompletionSource<byte[]?>? completionSource = null, Size? outputResolution = null, CropMode cropMode = CropMode.Aspect)
22 {
23 this.Source = source;
24 this.CompletionSource = completionSource;
25 this.OutputResolution = outputResolution;
26 this.CropMode = cropMode;
27 }
28
32 public ImageSource? Source { get; }
33
37 public TaskCompletionSource<byte[]?>? CompletionSource { get; }
38
42 public Size? OutputResolution { get; }
43
49 public CropMode CropMode { get; }
50 }
51}
An base class holding page specific navigation parameters.
Holds navigation parameters for opening the Image Cropping page.
TaskCompletionSource< byte[]?>? CompletionSource
Optional completion source for returning the cropped image data to the caller.
ImageCroppingNavigationArgs(ImageSource? source, TaskCompletionSource< byte[]?>? completionSource=null, Size? outputResolution=null, CropMode cropMode=CropMode.Aspect)
Creates a new set of arguments, providing the source to be cropped, an optional completionSource ,...
Size? OutputResolution
Optional output resolution for the cropped image.
CropMode
Specifies how the image should be cropped.