![]() |
|
[C#] PNG to ICO? - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] PNG to ICO? (/showthread.php?tid=5934585) |
PNG to ICO? - Anon Scripter - Jan 27, 2019 I'm working on a private crypter; But the problem is i cant manage to convert png (or any other image file) to ico without loosing or distorting quality. Any help? RE: PNG to ICO? - HFDone - Jan 27, 2019 load your png as bitmap and then save it with ImageFormat.Icon option RE: PNG to ICO? - Anon Scripter - Jan 27, 2019 (Jan 27, 2019 11:50 AM)HFDone Wrote: load your png as bitmap and then save it with ImageFormat.Icon option ive tried that, but it lowers the quality RE: PNG to ICO? - HFDone - Jan 27, 2019 then you probably will need to use the Graphics Class https://docs.microsoft.com/en-us/dotnet/api/system.drawing.graphics?view=netframework-4.7.2 CompositingMode Gets a value that specifies how composited images are drawn to this Graphics. CompositingQuality Gets or sets the rendering quality of composited images drawn to this Graphics. InterpolationMode Gets or sets the interpolation mode associated with this Graphics. SmoothingMode Gets or sets the rendering quality for this Graphics. RE: PNG to ICO? - _CASP3R_ - Jan 27, 2019 Use a web requests. There are plenty of sites on the internet where you can convert PNG to ico. It should be that difficult. GL RE: PNG to ICO? - gigajew - Jan 27, 2019 Here you go RE: PNG to ICO? - SaketSaket - Jan 28, 2019 (Jan 27, 2019 04:16 PM)gigajew Wrote: Here you go gigjew you are doing wonderful work here... Very few people help in this section now.... RE: PNG to ICO? - Nick (Name) - Jan 28, 2019 (Jan 28, 2019 09:13 AM)SaketSaket Wrote: gigjew you are doing wonderful work here... Very few people help in this section now.... because the majority of the questions asked here are rather basic and not even interesting anymore. tbh i’d rather answer questions on stackoverflow. RE: PNG to ICO? - gigajew - Jan 28, 2019 You're welcome. Hopefully others can find their way here with the same questions and get some answers. RE: PNG to ICO? - 0xDEAD10CC - Jan 28, 2019 (Jan 27, 2019 04:16 PM)gigajew Wrote: Here you go I'm not sure why you would use Encoding.Default here. You've also mixed Dispose() calls with the using statement here, but it seems like a bit of unnecessary/additional code too at first glance.. RE: PNG to ICO? - gigajew - Feb 3, 2019 Adding to my previous answer, here is a way to generate one icon from multiple images (yielding multi-size ico) as used for Windows icons |