Added a color picker, a modified Patch #3487158. Still needs some additional checks, if all resources are correctly freed etc.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1654 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-02-13 11:29:10 +00:00
commit 63f71138cf
10 changed files with 625 additions and 2 deletions

View file

@ -43,6 +43,8 @@ namespace GreenshotPlugin.UnmanagedHelpers {
public static extern IntPtr CreateRectRgn(int nLeftRect, int nTopRect, int nRightRect, int nBottomRect);
[DllImport("gdi32", SetLastError=true)]
public static extern int GetClipBox(IntPtr hdc, out RECT lprc);
[DllImport("gdi32", SetLastError = true)]
public static extern uint GetPixel(IntPtr hdc, int nXPos, int nYPos);
}
[StructLayout(LayoutKind.Sequential)]