Added "special" DIB clipboard reader code, which is a test to fix bug #3576125. This is enabled over the ini property EnableSpecialDIBClipboardReader, disabled by default.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2195 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-10-23 11:08:11 +00:00
commit fbc0285c93
6 changed files with 122 additions and 2 deletions

View file

@ -46,7 +46,17 @@ namespace GreenshotPlugin.UnmanagedHelpers {
[DllImport("gdi32", SetLastError = true)]
public static extern uint GetPixel(IntPtr hdc, int nXPos, int nYPos);
}
[StructLayout(LayoutKind.Sequential, Pack = 2)]
public struct BitmapFileHeader {
public static readonly short BM = 0x4d42; // BM
public short bfType;
public int bfSize;
public short bfReserved1;
public short bfReserved2;
public int bfOffBits;
}
[StructLayout(LayoutKind.Sequential)]
public struct BitmapInfoHeader {
public uint biSize;