mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Improved the support for dragging and dropping images from a website, now also parsing HTML img src information, to be able to download that image. For this we need the HtmlAgilityPack.dll (#294)
Removed a lot of dead code, and remove the old OCR code as we don't even know if it still works.
This commit is contained in:
parent
90cab1e8a3
commit
26fe579d31
151 changed files with 1138 additions and 8174 deletions
|
@ -19,7 +19,6 @@
|
|||
|
||||
using GreenshotPlugin.Core.Enums;
|
||||
using System.Diagnostics.Contracts;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace GreenshotPlugin.Core
|
||||
{
|
||||
|
@ -29,7 +28,7 @@ namespace GreenshotPlugin.Core
|
|||
public static class HResultExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Test if the HResult respresents a fail
|
||||
/// Test if the HResult represents a fail
|
||||
/// </summary>
|
||||
/// <param name="hResult">HResult</param>
|
||||
/// <returns>bool</returns>
|
||||
|
@ -40,7 +39,7 @@ namespace GreenshotPlugin.Core
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test if the HResult respresents a success
|
||||
/// Test if the HResult represents a success
|
||||
/// </summary>
|
||||
/// <param name="hResult">HResult</param>
|
||||
/// <returns>bool</returns>
|
||||
|
@ -49,17 +48,5 @@ namespace GreenshotPlugin.Core
|
|||
{
|
||||
return hResult >= HResult.S_OK;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Throw an exception on Failure
|
||||
/// </summary>
|
||||
/// <param name="hResult">HResult</param>
|
||||
public static void ThrowOnFailure(this HResult hResult)
|
||||
{
|
||||
if (hResult.Failed())
|
||||
{
|
||||
throw Marshal.GetExceptionForHR((int)hResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue