mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Made Plugin Example compilable.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2038 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
203a34ee6f
commit
a20619b265
1 changed files with 6 additions and 3 deletions
|
@ -55,7 +55,8 @@ namespace PluginExample {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) {
|
public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) {
|
||||||
|
ExportInformation exportInformation = new ExportInformation(this.Designation, this.Description);
|
||||||
CoreConfiguration config = IniConfig.GetIniSection<CoreConfiguration>();
|
CoreConfiguration config = IniConfig.GetIniSection<CoreConfiguration>();
|
||||||
OutputSettings outputSettings = new OutputSettings();
|
OutputSettings outputSettings = new OutputSettings();
|
||||||
|
|
||||||
|
@ -66,8 +67,10 @@ namespace PluginExample {
|
||||||
host.SaveToStream(image, stream, outputSettings);
|
host.SaveToStream(image, stream, outputSettings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MessageBox.Show("Saved test file to: " + filePath);
|
exportInformation.Filepath = filePath;
|
||||||
return true;
|
exportInformation.ExportMade = true;
|
||||||
|
ProcessExport(exportInformation, surface);
|
||||||
|
return exportInformation;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue