12345678910111213141516171819202122 |
- using System.Drawing;
- using System.Threading.Tasks;
- using Xamarin.Essentials;
- namespace InABox.Mobile
- {
- public interface IImageTools
- {
- 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<FileResult> CapturePhotoAsync(int? compression, Size? constraints);
- Task<FileResult> PickPhotoAsync(int? compression, Size? constraints);
- byte[] RotateImage(byte[] image, float angle, int quality = 100);
- byte[] ScaleImage(byte[] image, Size? constraints, int quality = 100);
- }
- }
|