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
This commit is contained in:
RKrom 2012-11-08 20:45:59 +00:00
parent ca73e3a673
commit b3c5eb67fd

View file

@ -60,11 +60,11 @@ namespace PluginExample {
CoreConfiguration config = IniConfig.GetIniSection<CoreConfiguration>(); CoreConfiguration config = IniConfig.GetIniSection<CoreConfiguration>();
OutputSettings outputSettings = new OutputSettings(); 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); string filePath = Path.Combine(config.OutputFilePath, file);
using (FileStream stream = new FileStream(filePath, FileMode.Create)) { using (FileStream stream = new FileStream(filePath, FileMode.Create)) {
using (Image image = surface.GetImageForExport()) { using (Image image = surface.GetImageForExport()) {
host.SaveToStream(image, stream, outputSettings); ImageOutput.SaveToStream(image, stream, outputSettings);
} }
} }
exportInformation.Filepath = filePath; exportInformation.Filepath = filePath;