ID:1993369
 
(See the best response by Ter13.)
Is there a text2file function for icons?

What I want to do is open an image such as a png and add it to an icon file like text2file does for text files?

is it possible ^^'?
icon files ARE PNGs. You can simply initialize the PNG as an icon file. Then you can perform blending normally to modify the DMI.
Okay? Is there some code example for that? I would have no idea where to start. XD
Best response
var/icon/i = new/icon('derp.dmi')
i.Insert(new/icon('herp.png'),"statename")