mirror of
https://github.com/greenshot/greenshot
synced 2025-07-15 01:23:47 -07:00
Fixed a possible DPI info loss
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2425 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
3fa043782f
commit
b17c3871a5
1 changed files with 1 additions and 0 deletions
|
@ -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
|
// 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 = new Bitmap(sourceBitmap.Width, sourceBitmap.Height, PixelFormat.Format8bppIndexed);
|
||||||
|
resultBitmap.SetResolution(sourceBitmap.HorizontalResolution, sourceBitmap.VerticalResolution);
|
||||||
using (BitmapBuffer bbbSrc = new BitmapBuffer(sourceBitmap, false)) {
|
using (BitmapBuffer bbbSrc = new BitmapBuffer(sourceBitmap, false)) {
|
||||||
bbbSrc.Lock();
|
bbbSrc.Lock();
|
||||||
using (BitmapBuffer bbbDest = new BitmapBuffer(resultBitmap, false)) {
|
using (BitmapBuffer bbbDest = new BitmapBuffer(resultBitmap, false)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue