mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 04:30:49 +12:00
Changed class name
This commit is contained in:
parent
3a2da6a4a8
commit
9adc945e1a
|
@ -291,7 +291,7 @@ public static Image AddCanvas(Image img, Padding margin)
|
|||
return bmp;
|
||||
}
|
||||
|
||||
public static Image RoundCorners(Image img, int cornerRadius)
|
||||
public static Image RoundedCorners(Image img, int cornerRadius)
|
||||
{
|
||||
Bitmap bmp = img.CreateEmptyBitmap();
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ private void AddAllEffectsToTreeView()
|
|||
typeof(Flip),
|
||||
typeof(Resize),
|
||||
typeof(Rotate),
|
||||
typeof(RoundCorners),
|
||||
typeof(RoundedCorners),
|
||||
typeof(Scale),
|
||||
typeof(Skew));
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
<Compile Include="Adjustments\Inverse.cs" />
|
||||
<Compile Include="Adjustments\Saturation.cs" />
|
||||
<Compile Include="Manipulations\Crop.cs" />
|
||||
<Compile Include="Manipulations\RoundCorners.cs" />
|
||||
<Compile Include="Manipulations\RoundedCorners.cs" />
|
||||
<Compile Include="Manipulations\Skew.cs" />
|
||||
<Compile Include="Filters\Blur.cs" />
|
||||
<Compile Include="Filters\Shadow.cs" />
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
|
||||
namespace ImageEffectsLib
|
||||
{
|
||||
[Description("Round corners")]
|
||||
internal class RoundCorners : ImageEffect
|
||||
[Description("Rounded corners")]
|
||||
internal class RoundedCorners : ImageEffect
|
||||
{
|
||||
private int cornerRadius;
|
||||
|
||||
|
@ -47,14 +47,14 @@ public int CornerRadius
|
|||
}
|
||||
}
|
||||
|
||||
public RoundCorners()
|
||||
public RoundedCorners()
|
||||
{
|
||||
this.ApplyDefaultPropertyValues();
|
||||
}
|
||||
|
||||
public override Image Apply(Image img)
|
||||
{
|
||||
return ImageHelpers.RoundCorners(img, CornerRadius);
|
||||
return ImageHelpers.RoundedCorners(img, CornerRadius);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue