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
Is your feature request related to a problem? Please describe
In my app Simple Icon File Maker opening different image types can cause errors if they are unsupported by WinAppSDK by default, but ImageMagick. Does support them but to load the image into Image Magick and back to the Image.Source take more work. The WPF method ToBitmapSource is amazing for this solution and I'd love to have the same option for my WinAppSDK apps.
Describe the solution you'd like
I would like to be able to set the Source of an Image using a single method .ToImageSource() which is a method on MagickImage
Describe alternatives you've considered
I can do it with Byte Arrays or saving to a file and loading again, but that is inefficient and extra work for no extra value. The WPF method is the best experience updating it for WinAppSDK would be ideal.
Additional context
The error I get when trying to use .ToBitmapSource() is
CS0029: Cannot implicitly convert type ‘System.Windows.Media.Imaging.BitmapSource’ to ‘Microsoft.UI.Xaml.Media.ImageSource'
The text was updated successfully, but these errors were encountered:
I would like to work on this issue. First, it will be necessary to create an extra project, as MAUI supports multiple targets, such as net8.0-android, net8.0-ios, and net8.0-maccatalyst.
I don't mind if we also add a MAUI implementation but that would be a different implementation that what this issue was raised for. That library should be called Magick.NET.MicrosoftMauiControls to have the same style as the other projects.
Sorry for the misunderstanding. If you allow me, I would like to work on both of them. First, I will start with the MicrosoftMauiControls implementation because I need to use it in my personal project.
Is your feature request related to a problem? Please describe
In my app Simple Icon File Maker opening different image types can cause errors if they are unsupported by WinAppSDK by default, but ImageMagick. Does support them but to load the image into Image Magick and back to the Image.Source take more work. The WPF method ToBitmapSource is amazing for this solution and I'd love to have the same option for my WinAppSDK apps.
Describe the solution you'd like
I would like to be able to set the Source of an Image using a single method
.ToImageSource()
which is a method onMagickImage
Describe alternatives you've considered
I can do it with Byte Arrays or saving to a file and loading again, but that is inefficient and extra work for no extra value. The WPF method is the best experience updating it for WinAppSDK would be ideal.
Additional context
The error I get when trying to use
.ToBitmapSource()
isThe text was updated successfully, but these errors were encountered: