Can you set Read/Write on an image in an Editor Script?

Can you set the read/write of an image in an editor script? Can you set the “Generate Mip Map” to false using the editor script?

I am generating an image in editor-scripting that I need to set these properties. At the moment, I’m hand editing them but it would be nice to set these in my script as a part of my scene generating pipeline.

Thanks

http://answers.unity3d.com/questions/43727/mipmapbias-in-the-texture-importer