mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -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
|
@ -123,7 +123,7 @@ namespace GreenshotConfluencePlugin {
|
|||
|
||||
Page selectedPage = page;
|
||||
bool openPage = (page == null) && config.OpenPageAfterUpload;
|
||||
string filename = ConfluencePlugin.Host.GetFilename(config.UploadFormat, captureDetails);
|
||||
string filename = FilenameHelper.GetFilename(config.UploadFormat, captureDetails);
|
||||
if (selectedPage == null) {
|
||||
ConfluenceUpload confluenceUpload = new ConfluenceUpload(filename);
|
||||
Nullable<bool> dialogResult = confluenceUpload.ShowDialog();
|
||||
|
@ -160,7 +160,7 @@ namespace GreenshotConfluencePlugin {
|
|||
OutputSettings outputSettings = new OutputSettings(config.UploadFormat, config.UploadJpegQuality, config.UploadReduceColors);
|
||||
byte[] buffer;
|
||||
using (MemoryStream stream = new MemoryStream()) {
|
||||
ConfluencePlugin.Host.SaveToStream(image, stream, outputSettings);
|
||||
ImageOutput.SaveToStream(image, stream, outputSettings);
|
||||
// COPY buffer to array
|
||||
buffer = stream.ToArray();
|
||||
}
|
||||
|
|
|
@ -74,12 +74,6 @@ namespace GreenshotConfluencePlugin {
|
|||
return confluenceConnector;
|
||||
}
|
||||
}
|
||||
|
||||
public static IGreenshotHost Host {
|
||||
get {
|
||||
return host;
|
||||
}
|
||||
}
|
||||
|
||||
public ConfluencePlugin() {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue