question

SalihKalkan-9326 avatar image
0 Votes"
SalihKalkan-9326 asked RoyLi-MSFT edited

Xamarin Forms UWP Image Resize (Help)

137070-ads%C4%B1asdasasdz.png





I added

using System.Threading.Tasks;
using Windows.Storage.Streams;
using Windows.Graphics.Imaging;
using System.Runtime.InteropServices.WindowsRuntime;
using .........UWP.CustomDependencies;
using ..........CustomDependencies;
using System;
using System.IO;
using Windows.UI.Xaml.Media.Imaging;
using Windows.Storage;
using Syncfusion.Drawing;

windows-uwp
adsıasdasasdz.png (151.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

123-9099 avatar image
1 Vote"
123-9099 answered RoyLi-MSFT edited

The problem is you used reactive MicrosoftStreamExtensions class conflict with WindowsRuntimeStreamExtensions, if you have not used reactive, please try to remove it, if you need to use it, please specific the return type for AsRandomAccessStream method.

  using (Windows.Storage.Streams.IRandomAccessStream imageStream = streamIn.AsRandomAccessStream())
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.