Are you interested in Windows only?
You can use this
Obviously, might need to save you image first. You might also look at the freeprocess module in pub which gives you a bit more control.
You can use this
system_("mspaint.exe image.png /p")
Obviously, might need to save you image first. You might also look at the freeprocess module in pub which gives you a bit more control.