You can create images using the usual canvas and bitmap creator methods*. Presumably you are writing a command-line utility, that will save the image to a file and/or send/upload via internet.
* or have you found some oddball set of circumstances where these don't work?... nothing about computers surprises me anymore ;-)