Xamarin Forms UWP Image Resize (Help)

Salih Kalkan 1 Reputation point
2021-10-02T16:56:30.2+00:00

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;

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nico 106 Reputation points
    2021-10-04T05:47:15.307+00:00

    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())
    
    1 person found this answer helpful.
    0 comments No comments