Code formatting (indents etc.) to get it consistent, simplify it for contributors.

This commit is contained in:
Robin Krom 2021-03-28 19:24:26 +02:00
commit e8c0b307ee
No known key found for this signature in database
GPG key ID: BCC01364F1371490
435 changed files with 46647 additions and 39014 deletions

View file

@ -25,33 +25,30 @@ using GreenshotPlugin.Core;
namespace GreenshotPlugin.Effects
{
/// <summary>
/// AdjustEffect
/// </summary>
public class AdjustEffect : IEffect {
public AdjustEffect()
{
Reset();
}
public float Contrast {
get;
set;
}
public float Brightness {
get;
set;
}
public float Gamma {
get;
set;
}
public void Reset() {
Contrast = 1f;
Brightness = 1f;
Gamma = 1f;
}
public Image Apply(Image sourceImage, Matrix matrix) {
return ImageHelper.Adjust(sourceImage, Brightness, Contrast, Gamma);
}
}
/// <summary>
/// AdjustEffect
/// </summary>
public class AdjustEffect : IEffect
{
public AdjustEffect()
{
Reset();
}
public float Contrast { get; set; }
public float Brightness { get; set; }
public float Gamma { get; set; }
public void Reset()
{
Contrast = 1f;
Brightness = 1f;
Gamma = 1f;
}
public Image Apply(Image sourceImage, Matrix matrix)
{
return ImageHelper.Adjust(sourceImage, Brightness, Contrast, Gamma);
}
}
}