Can I know how can I get SKBitmap from URL ?
I tried like this but i didn't get it. It is null.
var bitmap = SKBitmap.Decode(url);
SkiaSharp does not do any network operations, but this can be done in a few lines of code:
// download the bytes
var httpClient = new System.Net.Http.HttpClient();
var bytes = await httpClient.GetByteArrayAsync(url);
// wrap the bytes in a stream
var stream = new MemoryStream(bytes);
// decode the bitmap stream
var bitmap = SKBitmap.Decode(stream);
Even more you can use FFImageLoading nuget for faster cached images:
var stream = await ImageService.Instance.LoadUrl(url).AsJPGStreamAsync();
var bitmap= SKBitmap.Decode(stream);
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies