You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
The PlatformImage type isn't supported on Windows.
PlatformImage.FromStream(stream),it is unusable.
I can't find any solution.
Is there any other solution?
The text was updated successfully, but these errors were encountered:
Assembly assembly = GetType().GetTypeInfo().Assembly;
var service = new Microsoft.Maui.Graphics.Win2D.W2DImageLoadingService();
using (Stream stream = assembly.GetManifestResourceStream("HappySokoban.Resources.Images.box.jpg"))
{
image = service.FromStream(stream, ImageFormat.Jpeg);
}
The PlatformImage type isn't supported on Windows.
PlatformImage.FromStream(stream),it is unusable.
I can't find any solution.
Is there any other solution?
The text was updated successfully, but these errors were encountered: