mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -07:00
Added the Win10 plugin to the Greenshot installer.
This commit is contained in:
parent
cab0f21e26
commit
f2649a1feb
7 changed files with 59 additions and 10 deletions
|
@ -20,6 +20,7 @@
|
|||
*/
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Windows.Graphics.Imaging;
|
||||
|
@ -36,9 +37,14 @@ namespace GreenshotWin10Plugin
|
|||
{
|
||||
private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(Win10OcrDestination));
|
||||
|
||||
public override string Designation { get; } = "OCR";
|
||||
public override string Designation { get; } = "WIN10OCR";
|
||||
public override string Description { get; } = "Windows 10 OCR";
|
||||
|
||||
/// <summary>
|
||||
/// Icon for the OCR function, the icon was found via: http://help4windows.com/windows_8_imageres_dll.shtml
|
||||
/// </summary>
|
||||
public override Image DisplayIcon=> PluginUtils.GetCachedExeIcon(FilenameHelper.FillCmdVariables(@"%windir%\system32\imageres.dll"), 97);
|
||||
|
||||
/// <summary>
|
||||
/// Constructor, this is only debug information
|
||||
/// </summary>
|
||||
|
@ -49,7 +55,6 @@ namespace GreenshotWin10Plugin
|
|||
{
|
||||
Log.DebugFormat("Found language {0} {1}", language.NativeName, language.LanguageTag);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace GreenshotWin10Plugin
|
|||
/// <returns>IEnumerable with the destinations</returns>
|
||||
public IEnumerable<IDestination> Destinations()
|
||||
{
|
||||
if (!Environment.OSVersion.IsWindows10())
|
||||
if (!Environment.OSVersion.IsWindows10OrLater())
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ using System.Threading.Tasks;
|
|||
using Windows.Storage;
|
||||
using Color = Windows.UI.Color;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
namespace GreenshotWin10Plugin
|
||||
{
|
||||
|
@ -39,9 +40,14 @@ namespace GreenshotWin10Plugin
|
|||
{
|
||||
private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(Win10ShareDestination));
|
||||
|
||||
public override string Designation { get; } = "Share";
|
||||
public override string Designation { get; } = "WIN10Share";
|
||||
public override string Description { get; } = "Windows 10 share";
|
||||
|
||||
/// <summary>
|
||||
/// Icon for the App-share, the icon was found via: http://help4windows.com/windows_8_shell32_dll.shtml
|
||||
/// </summary>
|
||||
public override Image DisplayIcon => PluginUtils.GetCachedExeIcon(FilenameHelper.FillCmdVariables(@"%windir%\system32\shell32.dll"), 238);
|
||||
|
||||
/// <summary>
|
||||
/// Share the screenshot with a windows app
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue