mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
Forgot gamma...
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2470 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
a2fb7bf322
commit
8f36064131
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue