mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Code formatting (indents etc.) to get it consistent, simplify it for contributors.
This commit is contained in:
parent
726644de99
commit
e8c0b307ee
435 changed files with 46647 additions and 39014 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue