I wanted to use System.Drawing.Bitmap and System.Drawing.Imaging.ImageFormat, i.e.
static void LoadThenSave(string dstPathAndBase, System.Drawing.Imaging.ImageFormat dstFmt, string srcPathAndFName) {
Bitmap myPat = new Bitmap(srcPathAndFName);
myPat.SetResolution(96, 96);
myPat.Save(dstPathAndBase + dstExt, dstFmt);
But I would also prefer to code a console application, so that if invoked from a command-line or in a batch file, any errors or messages would go to stdout, like traditional utilities. Is there any way to get System.Drawing to work in a Console Application
I did get my intended application working with a System.Windows.Forms.Form based application, but my System.Write calls only show in the Output window of VSE while Debugging. I never see the output from my System.Write calls when run at the Command Prompt.
|