so you want to grab an existing icon file, do something with it like draw a line on it?

And then what? You said it should not store the icon as a file, so what exactly do you want to do? grab an icon, draw on it, and then use it in the application?