Skip to content

Commit

Permalink
Workaround for mono/SkiaSharp#1551
Browse files Browse the repository at this point in the history
  • Loading branch information
Fusion86 committed Apr 21, 2022
1 parent 345ff44 commit fa97014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Skia/Avalonia.Skia/ImmutableBitmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public ImmutableBitmap(ImmutableBitmap src, PixelSize destinationSize, BitmapInt
public ImmutableBitmap(Stream stream, int decodeSize, bool horizontal, BitmapInterpolationMode interpolationMode)
{
using (var skStream = new SKManagedStream(stream))
using (var codec = SKCodec.Create(skStream))
using (var skData = SKData.Create(skStream))
using (var codec = SKCodec.Create(skData))
{
var info = codec.Info;

Expand Down

0 comments on commit fa97014

Please sign in to comment.