mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Fixed DIB clipboard support, made a copy/paste error which caused DIB not to be written to the clipboard!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1804 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
fbd5b8d9a4
commit
b03787b2c3
1 changed files with 1 additions and 2 deletions
|
@ -366,11 +366,10 @@ EndSelection:<<<<<<<4
|
|||
ido.SetData("PNG", false, pngStream);
|
||||
}
|
||||
|
||||
if (config.ClipboardFormats.Contains(ClipboardFormat.HTML)) {
|
||||
if (config.ClipboardFormats.Contains(ClipboardFormat.DIB)) {
|
||||
bmpStream = new MemoryStream();
|
||||
// Save image as BMP
|
||||
image.Save(bmpStream, ImageFormat.Bmp);
|
||||
|
||||
imageStream = new MemoryStream();
|
||||
// Copy the source, but skip the "BITMAPFILEHEADER" which has a size of 14
|
||||
imageStream.Write(bmpStream.GetBuffer(), BITMAPFILEHEADER_LENGTH, (int) bmpStream.Length - BITMAPFILEHEADER_LENGTH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue