From b17c3871a586c85402b8d578da8fb6d6204c09a3 Mon Sep 17 00:00:00 2001 From: RKrom Date: Sun, 13 Jan 2013 14:49:58 +0000 Subject: [PATCH] Fixed a possible DPI info loss git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2425 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/QuantizerHelper.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/GreenshotPlugin/Core/QuantizerHelper.cs b/GreenshotPlugin/Core/QuantizerHelper.cs index 8d0666708..84a79aede 100644 --- a/GreenshotPlugin/Core/QuantizerHelper.cs +++ b/GreenshotPlugin/Core/QuantizerHelper.cs @@ -141,6 +141,7 @@ namespace GreenshotPlugin.Core { // Use a bitmap to store the initial match, which is just as good as an array and saves us 2x the storage resultBitmap = new Bitmap(sourceBitmap.Width, sourceBitmap.Height, PixelFormat.Format8bppIndexed); + resultBitmap.SetResolution(sourceBitmap.HorizontalResolution, sourceBitmap.VerticalResolution); using (BitmapBuffer bbbSrc = new BitmapBuffer(sourceBitmap, false)) { bbbSrc.Lock(); using (BitmapBuffer bbbDest = new BitmapBuffer(resultBitmap, false)) {