mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -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
|
@ -94,26 +94,6 @@ namespace Greenshot.Helpers {
|
|||
|
||||
#region Implementation of IGreenshotPluginHost
|
||||
private ContextMenuStrip mainMenu = null;
|
||||
|
||||
public void SaveToStream(Image img, Stream stream, OutputSettings outputSettings) {
|
||||
ImageOutput.SaveToStream(img, stream, outputSettings);
|
||||
}
|
||||
|
||||
public string SaveToTmpFile(Image img, OutputSettings outputSettings, string destinationPath) {
|
||||
return ImageOutput.SaveToTmpFile(img, outputSettings, destinationPath);
|
||||
}
|
||||
|
||||
public string SaveNamedTmpFile(Image image, ICaptureDetails captureDetails, OutputSettings outputSettings) {
|
||||
return ImageOutput.SaveNamedTmpFile(image, captureDetails, outputSettings);
|
||||
}
|
||||
|
||||
public string GetFilename(OutputFormat format, ICaptureDetails captureDetails) {
|
||||
string pattern = conf.OutputFileFilenamePattern;
|
||||
if (pattern == null || string.IsNullOrEmpty(pattern.Trim())) {
|
||||
pattern = "greenshot ${capturetime}";
|
||||
}
|
||||
return FilenameHelper.GetFilenameFromPattern(pattern, format, captureDetails);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a Thumbnail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue