Added some Greenshot 1.1 code, is currently unused.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2001 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-08-21 12:19:18 +00:00
commit 89ab88e95d

View file

@ -297,7 +297,18 @@ namespace Greenshot.Helpers {
case CaptureMode.File: case CaptureMode.File:
Bitmap fileBitmap = null; Bitmap fileBitmap = null;
string filename = capture.CaptureDetails.Filename; string filename = capture.CaptureDetails.Filename;
if (!string.IsNullOrEmpty(filename)) { if (!string.IsNullOrEmpty(filename)) {
try {
if (filename.EndsWith(".gsf")) {
ISurface surface = ImageOutput.LoadGreenshotSurface(filename);
DestinationHelper.GetDestination(EditorDestination.DESIGNATION).ExportCapture(true, surface, capture.CaptureDetails);
break;
}
} catch (Exception e) {
LOG.Error(e.Message, e);
MessageBox.Show(Language.GetFormattedString(LangKey.error_openfile, filename));
}
try { try {
fileBitmap = ImageHelper.LoadBitmap(filename); fileBitmap = ImageHelper.LoadBitmap(filename);
} catch (Exception e) { } catch (Exception e) {