Photoshop has a COM interface, and here is a document on how to access it through C #.
The specifics of what you want to do will require a little more digging into the actual Photoshops documentation, but this will get you started .
For more information, see the scripting guide sections and SDK information .
source share