I need to get the Icon of an Executable as SKBitmap
I already know how I can get the Icon of the Executable, but I'm stuck finding a way to convert the System.Drawing.Icon
to a SkiaSharp.SKBitmap
which the Project I'm working on uses to apply further Processing. I am aware of the Icon.toBitmap()
which gives me a System.Drawing.Bitmap
, but i can't convert that either.
Icon icon = Icon.ExtractAssociatedIcon(/*Path to FooBar.exe*/);
SKBitmap skbm = /* what goes here ? */;
The Following solves the Problem