inside my xamarin.mac application , I use SQLite to save database, profile picture is saved in database too, but I have problems with working big images (for ex. size 4 MB), I just need to save thumbnail of photo , while uploading :
imgProfilePicture.Image = new NSImage (path);
Byte [] bytes = System.IO.File.ReadAllBytes (path);
_profilePic = Convert.ToBase64String (bytes);
I save base64 string in db.. also , here is simple solution in c #:
Image image = Image.FromFile(fileName);
Image thumb = image.GetThumbnailImage(120, 120, ()=>false, IntPtr.Zero);
thumb.Save(Path.ChangeExtension(fileName, "thumb"));
I need something like this, need to resize image without cropping it