Refactorings for the new IniConfig

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@853 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2010-08-24 09:54:32 +00:00
commit 14b0863bcd
34 changed files with 338 additions and 499 deletions

View file

@ -163,7 +163,7 @@ namespace GreenshotOCR {
if (eventArgs.Capture.Image == null) {
return;
}
string file = host.GetFilename("bmp", eventArgs.Capture.CaptureDetails);
string file = host.GetFilename(OutputFormat.Bmp, eventArgs.Capture.CaptureDetails);
string filePath = Path.Combine(Path.GetTempPath(),file);
using (FileStream stream = File.Create(filePath)) {
@ -177,10 +177,10 @@ namespace GreenshotOCR {
graphics.Clear(Color.White);
graphics.DrawImage(capturedImage, Point.Empty);
}
host.SaveToStream(tmpImage, stream, "bmp", 100);
host.SaveToStream(tmpImage, stream, OutputFormat.Bmp, 100);
}
} else {
host.SaveToStream(capturedImage, stream, "bmp", 100);
host.SaveToStream(capturedImage, stream, OutputFormat.Bmp, 100);
}
}