using System.Drawing; using Microsoft.Maui.Storage; namespace InABox.Avalonia.Platform { public interface IImageTools : ILoggable { byte[] CreateVideoThumbnail(byte[] video, int maxwidth, int maxheight); byte[] CreateThumbnail(byte[] image, int maxwidth, int maxheight); // Goal - to return a properly rotated, scaled and compressed JPEG Image Task CapturePhotoAsync(int? compression, Size? constraints); Task PickPhotoAsync(int? compression, Size? constraints); byte[] RotateImage(byte[] image, float angle, int quality = 100); byte[] ScaleImage(byte[] image, Size? constraints, int quality = 100); } }