I need to convert the image format, such as from JPG to PNG, and zoom at the same time, Support both Android and IOS.
The function is similar to System.Drawing
I need to convert the image format, such as from JPG to PNG, and zoom at the same time, Support both Android and IOS.
The function is similar to System.Drawing
Hello,
Welcome to Microsoft Q&A!
Take a look at DevKit.Xamarin.ImageKit .
It supports
Conversion
byte[] pngImage = await CrossImageConverter.Current.ConvertJpgToPng(sampleImage);
Resizing
byte[] reducedImage = await CrossImageResizer.Current.ResizeImageAsync(sampleImage, 320, 320, format);
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
7 people are following this question.