mirror of
https://github.com/greenshot/greenshot
synced 2025-07-15 01:23:47 -07:00
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:
parent
ca73e3a673
commit
b3c5eb67fd
1 changed files with 2 additions and 2 deletions
|
@ -60,11 +60,11 @@ namespace PluginExample {
|
|||
CoreConfiguration config = IniConfig.GetIniSection<CoreConfiguration>();
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue