Repository navigation
SVG (to Bitmap) to Icon Converter #2801
ktwrd
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Heya!
I made an SVG (to PNG) to Icon Converter written for usage with Eto.Forms. The code is a bit messy, and it uses
System.Drawingpartially (provided bySvg), but it should work on Linux iflibgdiplusis installed. To have the most control over how theIconclass works, it generates an.icofile in-memory, then creates an instance ofEto.Drawing.Iconvia the(Stream)constructor, then that gets cached.Currently it's only a gist, but I'll move it to my C# Library at some point.
Eto.Forms: SVG (to Bitmap) to Icon Converter
The code can be easily modified to add the ability to create a
Eto.Drawing.Bitmapfrom an SVG (along with caching the generated Bitmaps), but that's something I'll do later.All reactions