Im trying to save a bitmap jpg format with a specified encoding quality. However im getting an exception (\"Parameter is not valid.\") when calling the save method.
You should cast quality value to long, like this:
eps.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, (long)16);
GDI+ is pretty flaky. You'll need to use 16L for the value or cast to (long).