Skip to content

Commit

Permalink
Moved Edge to IMagickImageCreateOperations.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 17, 2024
1 parent 93223aa commit 2a85f1b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/Magick.NET.Core/IMagickImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -905,13 +905,6 @@ public partial interface IMagickImage : IMagickImageCreateOperations, IDisposabl
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
void Draw(IEnumerable<IDrawable> drawables);

/// <summary>
/// Edge image (highlight edges in image).
/// </summary>
/// <param name="radius">The radius of the pixel neighborhood.</param>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
void Edge(double radius);

/// <summary>
/// Emboss image (highlight edges with 3D effect) with default value (0x1).
/// </summary>
Expand Down
7 changes: 7 additions & 0 deletions src/Magick.NET.Core/IMagickImageCreateOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,13 @@ public interface IMagickImageCreateOperations
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
void Distort(IDistortSettings settings, params double[] arguments);

/// <summary>
/// Edge image (highlight edges in image).
/// </summary>
/// <param name="radius">The radius of the pixel neighborhood.</param>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
void Edge(double radius);

/// <summary>
/// Resize image to specified size.
/// <para />
Expand Down
3 changes: 3 additions & 0 deletions src/Magick.NET/MagickImage.CloneMutator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ public void Distort(IDistortSettings settings, params double[] arguments)
SetResult(NativeMagickImage.Distort(settings.Method, settings.Bestfit, arguments, (nuint)arguments.Length));
}

public void Edge(double radius)
=> SetResult(NativeMagickImage.Edge(radius));

public void Resize(uint width, uint height)
=> Resize(new MagickGeometry(width, height));

Expand Down
3 changes: 1 addition & 2 deletions src/Magick.NET/Native/MagickImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,7 @@ private unsafe sealed partial class NativeMagickImage : NativeInstance, INativeM
public partial IntPtr Distort(DistortMethod method, bool bestfit, double[] arguments, nuint length);

[Throws]
[SetInstance]
public partial void Edge(double radius);
public partial IntPtr Edge(double radius);

[Throws]
[SetInstance]
Expand Down

0 comments on commit 2a85f1b

Please sign in to comment.