I'm trying to fix the issue in the code for Windows where the image does not appear on the button due to the Canvas.DrawImage only supporting IImage types.
image = Microsoft.Maui.Graphics.Platform.PlatformImage.FromStream(stream);
canvas.DrawImage(image, dirtyRect.X + dirtyRect.Width / 4, dirtyRect.Y + dirtyRect.Height / 4, dirtyRect.Width / 2, dirtyRect.Height / 2);
I can load the ImageSource type....
imgSource = ImageSource.FromStream(() => stream);
...but the DrawImage call in the Canvas class only supports IImage types.
I'm trying to fix the issue in the code for Windows where the image does not appear on the button due to the Canvas.DrawImage only supporting IImage types.
image = Microsoft.Maui.Graphics.Platform.PlatformImage.FromStream(stream);canvas.DrawImage(image, dirtyRect.X + dirtyRect.Width / 4, dirtyRect.Y + dirtyRect.Height / 4, dirtyRect.Width / 2, dirtyRect.Height / 2);I can load the ImageSource type....
imgSource = ImageSource.FromStream(() => stream);...but the
DrawImagecall in theCanvasclass only supportsIImagetypes.