Light Image Resizer can used for your windows project and program as a command line.

All the options you can see in the program could be found in the registry, so you can program or change the values ( and restore them ) each time you execute it.

all the options are explained in this text
switches.txt

post your comments in this thread and a programmer will help to make the integration as smooth as possible.