mirror of
https://github.com/greenshot/greenshot
synced 2025-07-06 04:52:16 -07:00
Fix #392 , The DibFileFormatHandler wasn't registered with the name which is stored in DataFormats.Dib
This commit is contained in:
parent
5bc52e4d55
commit
2721ee06a2
2 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ namespace Greenshot.Editor.FileFormatHandlers
|
|||
// For those images which are with Alpha, but the format doesn't support this, change it to 24bpp
|
||||
if (imageFormat.Guid == ImageFormat.Jpeg.Guid && Image.IsAlphaPixelFormat(bitmap.PixelFormat))
|
||||
{
|
||||
var nonAlphaImage = ImageHelper.Clone(bitmap, PixelFormat.Format24bppRgb) as Bitmap;
|
||||
var nonAlphaImage = ImageHelper.Clone(bitmap, PixelFormat.Format24bppRgb);
|
||||
try
|
||||
{
|
||||
// Set that this file was written by Greenshot
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace Greenshot.Editor.FileFormatHandlers
|
|||
private const double DpiToPelsPerMeter = 39.3701;
|
||||
private static readonly ILog Log = LogManager.GetLogger(typeof(DibFileFormatHandler));
|
||||
|
||||
private readonly IReadOnlyCollection<string> _ourExtensions = new[] { ".dib", ".format17" };
|
||||
private readonly IReadOnlyCollection<string> _ourExtensions = new[] { ".dib", ".format17", ".deviceindependentbitmap" };
|
||||
|
||||
public DibFileFormatHandler()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue