mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
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:
parent
d8374df331
commit
89ab88e95d
1 changed files with 11 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue