From b3c5eb67fd68eb90c9497b319eae64cea38b026b Mon Sep 17 00:00:00 2001 From: RKrom Date: Thu, 8 Nov 2012 20:45:59 +0000 Subject: [PATCH] Fixed example plugin to work with the latest changes git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2258 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- PluginExample/SimpleOutputDestination.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PluginExample/SimpleOutputDestination.cs b/PluginExample/SimpleOutputDestination.cs index 5efff1203..608058335 100644 --- a/PluginExample/SimpleOutputDestination.cs +++ b/PluginExample/SimpleOutputDestination.cs @@ -60,11 +60,11 @@ namespace PluginExample { CoreConfiguration config = IniConfig.GetIniSection(); OutputSettings outputSettings = new OutputSettings(); - string file = host.GetFilename(OutputFormat.png, null); + string file = FilenameHelper.GetFilename(OutputFormat.png, null); string filePath = Path.Combine(config.OutputFilePath, file); using (FileStream stream = new FileStream(filePath, FileMode.Create)) { using (Image image = surface.GetImageForExport()) { - host.SaveToStream(image, stream, outputSettings); + ImageOutput.SaveToStream(image, stream, outputSettings); } } exportInformation.Filepath = filePath;