mirror of
https://github.com/greenshot/greenshot
synced 2025-07-06 04:52:16 -07:00
Solved the clipboard loading for the DIB file format too, this is related to #396
This commit is contained in:
parent
83b308cb4b
commit
9ae5598ab8
1 changed files with 3 additions and 2 deletions
|
@ -87,8 +87,9 @@ namespace Greenshot.Editor.FileFormatHandlers
|
||||||
bitmapStream.Write(dibBuffer, 0, dibBuffer.Length);
|
bitmapStream.Write(dibBuffer, 0, dibBuffer.Length);
|
||||||
bitmapStream.Seek(0, SeekOrigin.Begin);
|
bitmapStream.Seek(0, SeekOrigin.Begin);
|
||||||
// TODO: Replace with a FileFormatHandler
|
// TODO: Replace with a FileFormatHandler
|
||||||
bitmap = ImageIO.FromStream(bitmapStream) as Bitmap;
|
using var beforeCloneImage = Image.FromStream(bitmapStream);
|
||||||
return true;
|
bitmap = ImageHelper.Clone(beforeCloneImage) as Bitmap;
|
||||||
|
return bitmap != null;
|
||||||
}
|
}
|
||||||
Log.Info("Using special DIBV5 / Format17 format reader");
|
Log.Info("Using special DIBV5 / Format17 format reader");
|
||||||
// CF_DIBV5
|
// CF_DIBV5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue