mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -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
|
@ -33,8 +33,6 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
/// Desktop Window Manager helper code
|
||||
/// </summary>
|
||||
public static class DWM {
|
||||
public static readonly uint DWM_EC_DISABLECOMPOSITION = 0;
|
||||
public static readonly uint DWM_EC_ENABLECOMPOSITION = 1;
|
||||
|
||||
// DWM
|
||||
[DllImport("dwmapi", SetLastError = true)]
|
||||
|
@ -53,19 +51,8 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
public static extern int DwmGetWindowAttribute(IntPtr hWnd, DWMWINDOWATTRIBUTE dwAttribute, out RECT lpRect, int size);
|
||||
[DllImport("dwmapi", SetLastError = true)]
|
||||
public static extern int DwmGetWindowAttribute(IntPtr hWnd, DWMWINDOWATTRIBUTE dwAttribute, out bool pvAttribute, int cbAttribute);
|
||||
[DllImport("dwmapi", SetLastError = true)]
|
||||
public static extern int DwmEnableBlurBehindWindow(IntPtr hWnd, ref DWM_BLURBEHIND blurBehind);
|
||||
[DllImport("dwmapi", SetLastError = true)]
|
||||
public static extern uint DwmEnableComposition(uint uCompositionAction);
|
||||
|
||||
public static void EnableComposition() {
|
||||
DwmEnableComposition(DWM_EC_ENABLECOMPOSITION);
|
||||
}
|
||||
public static void DisableComposition() {
|
||||
DwmEnableComposition(DWM_EC_DISABLECOMPOSITION);
|
||||
}
|
||||
|
||||
// Key to ColorizationColor for DWM
|
||||
// Key to ColorizationColor for DWM
|
||||
private const string COLORIZATION_COLOR_KEY = @"SOFTWARE\Microsoft\Windows\DWM";
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue