mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Refactoring some more classes, making easier code in plug-ins possible. Needed this for better testing some problems with the CreateShadow function.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2094 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
017b874de3
commit
9488200886
20 changed files with 128 additions and 190 deletions
|
@ -36,11 +36,9 @@ namespace ExternalCommand {
|
|||
public class ExternalCommandDestination : AbstractDestination {
|
||||
private static log4net.ILog LOG = log4net.LogManager.GetLogger(typeof(ExternalCommandDestination));
|
||||
private static ExternalCommandConfiguration config = IniConfig.GetIniSection<ExternalCommandConfiguration>();
|
||||
private IGreenshotHost host;
|
||||
private string presetCommand;
|
||||
|
||||
public ExternalCommandDestination(IGreenshotHost host, string commando) {
|
||||
this.host = host;
|
||||
public ExternalCommandDestination(string commando) {
|
||||
this.presetCommand = commando;
|
||||
}
|
||||
|
||||
|
@ -79,7 +77,7 @@ namespace ExternalCommand {
|
|||
string fullPath = captureDetails.Filename;
|
||||
if (fullPath == null) {
|
||||
using (Image image = surface.GetImageForExport()) {
|
||||
fullPath = host.SaveNamedTmpFile(image, captureDetails, outputSettings);
|
||||
fullPath = ImageOutput.SaveNamedTmpFile(image, captureDetails, outputSettings);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue