mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
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:
parent
7b30cdb617
commit
fbc0285c93
6 changed files with 122 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue