Skip to content

Commit

Permalink
Update android texture loader store
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Dec 14, 2024
1 parent f8f3b31 commit afd49bc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public AndroidTextureLoaderStore(IResourceStore<byte[]> store)
{
}

protected override Image<TPixel> ImageFromStream<TPixel>(Stream stream)
protected override PremultipliedImage ImageFromStream(Stream stream)
{
using (var bitmap = BitmapFactory.DecodeStream(stream))
{
Expand All @@ -34,7 +34,7 @@ protected override Image<TPixel> ImageFromStream<TPixel>(Stream stream)
}

bitmap.Recycle();
return Image.LoadPixelData<TPixel>(result, bitmap.Width, bitmap.Height);
return PremultipliedImage.FromStraight(Image.LoadPixelData<Rgba32>(result, bitmap.Width, bitmap.Height));

Check failure on line 37 in osu.Framework.Android/Graphics/Textures/AndroidTextureLoaderStore.cs

View workflow job for this annotation

GitHub Actions / Build only (Android)

The type or namespace name 'Rgba32' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 37 in osu.Framework.Android/Graphics/Textures/AndroidTextureLoaderStore.cs

View workflow job for this annotation

GitHub Actions / Build only (Android)

Argument 1: cannot convert from 'SixLabors.ImageSharp.Image<Rgba32>' to 'SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgba32>'

Check failure on line 37 in osu.Framework.Android/Graphics/Textures/AndroidTextureLoaderStore.cs

View workflow job for this annotation

GitHub Actions / Build only (Android)

The type or namespace name 'Rgba32' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 37 in osu.Framework.Android/Graphics/Textures/AndroidTextureLoaderStore.cs

View workflow job for this annotation

GitHub Actions / Build only (Android)

Argument 1: cannot convert from 'SixLabors.ImageSharp.Image<Rgba32>' to 'SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgba32>'
}
}
}
Expand Down

0 comments on commit afd49bc

Please sign in to comment.