diff --git a/osu.Framework.Android/Graphics/Textures/AndroidTextureLoaderStore.cs b/osu.Framework.Android/Graphics/Textures/AndroidTextureLoaderStore.cs index 1f1730db4c..29611e72f0 100644 --- a/osu.Framework.Android/Graphics/Textures/AndroidTextureLoaderStore.cs +++ b/osu.Framework.Android/Graphics/Textures/AndroidTextureLoaderStore.cs @@ -7,6 +7,7 @@ using osu.Framework.Graphics.Textures; using osu.Framework.IO.Stores; using SixLabors.ImageSharp; +using SixLabors.ImageSharp.PixelFormats; namespace osu.Framework.Android.Graphics.Textures { @@ -17,7 +18,7 @@ public AndroidTextureLoaderStore(IResourceStore store) { } - protected override Image ImageFromStream(Stream stream) + protected override PremultipliedImage ImageFromStream(Stream stream) { using (var bitmap = BitmapFactory.DecodeStream(stream)) { @@ -34,7 +35,7 @@ protected override Image ImageFromStream(Stream stream) } bitmap.Recycle(); - return Image.LoadPixelData(result, bitmap.Width, bitmap.Height); + return PremultipliedImage.FromPremultiplied(Image.LoadPixelData(result, bitmap.Width, bitmap.Height)); } } }