From 8f3606413159b39870a8caa6817e70347140430e Mon Sep 17 00:00:00 2001 From: RKrom Date: Thu, 7 Feb 2013 13:23:32 +0000 Subject: [PATCH] Forgot gamma... git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2470 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/ImageHelper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GreenshotPlugin/Core/ImageHelper.cs b/GreenshotPlugin/Core/ImageHelper.cs index 033517b8f..e26ab49af 100644 --- a/GreenshotPlugin/Core/ImageHelper.cs +++ b/GreenshotPlugin/Core/ImageHelper.cs @@ -1054,9 +1054,9 @@ namespace GreenshotPlugin.Core { //create some image attributes ImageAttributes attributes = new ImageAttributes(); - - //set the color matrix attribute - attributes.SetColorMatrix(colorMatrix); + attributes.ClearColorMatrix(); + attributes.SetColorMatrix(colorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap); + attributes.SetGamma(gamma, ColorAdjustType.Bitmap); //draw the original image on the new image using the grayscale color matrix graphics.DrawImage(sourceImage, new Rectangle(0, 0, sourceImage.Width, sourceImage.Height), 0, 0, sourceImage.Width, sourceImage.Height, GraphicsUnit.Pixel, attributes);