mirror of
https://github.com/greenshot/greenshot
synced 2025-07-05 20:42:14 -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.Seek(0, SeekOrigin.Begin);
|
||||
// TODO: Replace with a FileFormatHandler
|
||||
bitmap = ImageIO.FromStream(bitmapStream) as Bitmap;
|
||||
return true;
|
||||
using var beforeCloneImage = Image.FromStream(bitmapStream);
|
||||
bitmap = ImageHelper.Clone(beforeCloneImage) as Bitmap;
|
||||
return bitmap != null;
|
||||
}
|
||||
Log.Info("Using special DIBV5 / Format17 format reader");
|
||||
// CF_DIBV5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue