Added reduce colors to the quality form

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1708 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-03-19 18:29:19 +00:00
parent d824b8e893
commit 9733aa79a8
22 changed files with 131 additions and 78 deletions

View file

@ -67,7 +67,7 @@ namespace PluginExample {
string filePath = Path.Combine(config.OutputFilePath, file);
using (FileStream stream = new FileStream(filePath, FileMode.Create)) {
using (Image image = surface.GetImageForExport()) {
host.SaveToStream(image, stream, OutputFormat.png, 100);
host.SaveToStream(image, stream, OutputFormat.png, config.OutputFileJpegQuality, config.OutputFileReduceColors);
}
}
MessageBox.Show("Saved test file to: " + filePath);