PixelFormatsConverter contains two extensions in order to convert PixelFormat values from System.Drawing.Imaging.PixelFormat to System.Windows.Media.PixelFormat.
$ dotnet add package PixelFormatsConverterConvert from System.Drawing.Imaging.PixelFormat to System.Windows.Media.PixelFormat (or System.Windows.Media.PixelFormat or System.Drawing.Imaging.PixelFormat)
An extension method named 'Convert' do the job. Just call the Convert() method from a System.Drawing.Imaging.PixelFormat or a System.Windows.Media.PixelFormat item.
using PixelFormatsConverter;
...
myItem.Convert();
...
Enjoy !
If you have any questions, problems or suggestions, create an issue or fork the project and create a Pull Request.
You want more ? Feel free to create an issue or contribute by adding new functionnalities by forking the project and create a pull request.
And if y like this project, don't forget to star it !
You can also support me with a coffee :