mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 21:43:24 -07:00
Added reading of Format17/CF_DIBV5 from the clipboard, this is a format which supports transparency and with it Greenshot now processes more clipboard images correctly. Writing Format17/CF_DIBV5 to the clipboard is something that will be looked at.
This commit is contained in:
parent
9df25bdd76
commit
6ddb16e0b1
2 changed files with 65 additions and 4 deletions
|
@ -300,4 +300,32 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
biClrImportant = 0;
|
||||
}
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct BitmapV5Header {
|
||||
public uint bV5Size;
|
||||
public int bV5Width;
|
||||
public int bV5Height;
|
||||
public UInt16 bV5Planes;
|
||||
public UInt16 bV5BitCount;
|
||||
public uint bV5Compression;
|
||||
public uint bV5SizeImage;
|
||||
public int bV5XPelsPerMeter;
|
||||
public int bV5YPelsPerMeter;
|
||||
public UInt16 bV5ClrUsed;
|
||||
public UInt16 bV5ClrImportant;
|
||||
public UInt16 bV5RedMask;
|
||||
public UInt16 bV5GreenMask;
|
||||
public UInt16 bV5BlueMask;
|
||||
public UInt16 bV5AlphaMask;
|
||||
public UInt16 bV5CSType;
|
||||
public IntPtr bV5Endpoints;
|
||||
public UInt16 bV5GammaRed;
|
||||
public UInt16 bV5GammaGreen;
|
||||
public UInt16 bV5GammaBlue;
|
||||
public UInt16 bV5Intent;
|
||||
public UInt16 bV5ProfileData;
|
||||
public UInt16 bV5ProfileSize;
|
||||
public UInt16 bV5Reserved;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue