Skip to content

Commit 2a85f1b

Browse files
committed
Moved Edge to IMagickImageCreateOperations.
1 parent 93223aa commit 2a85f1b

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

src/Magick.NET.Core/IMagickImage.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -905,13 +905,6 @@ public partial interface IMagickImage : IMagickImageCreateOperations, IDisposabl
905905
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
906906
void Draw(IEnumerable<IDrawable> drawables);
907907

908-
/// <summary>
909-
/// Edge image (highlight edges in image).
910-
/// </summary>
911-
/// <param name="radius">The radius of the pixel neighborhood.</param>
912-
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
913-
void Edge(double radius);
914-
915908
/// <summary>
916909
/// Emboss image (highlight edges with 3D effect) with default value (0x1).
917910
/// </summary>

src/Magick.NET.Core/IMagickImageCreateOperations.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,13 @@ public interface IMagickImageCreateOperations
425425
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
426426
void Distort(IDistortSettings settings, params double[] arguments);
427427

428+
/// <summary>
429+
/// Edge image (highlight edges in image).
430+
/// </summary>
431+
/// <param name="radius">The radius of the pixel neighborhood.</param>
432+
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
433+
void Edge(double radius);
434+
428435
/// <summary>
429436
/// Resize image to specified size.
430437
/// <para />

src/Magick.NET/MagickImage.CloneMutator.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ public void Distort(IDistortSettings settings, params double[] arguments)
246246
SetResult(NativeMagickImage.Distort(settings.Method, settings.Bestfit, arguments, (nuint)arguments.Length));
247247
}
248248

249+
public void Edge(double radius)
250+
=> SetResult(NativeMagickImage.Edge(radius));
251+
249252
public void Resize(uint width, uint height)
250253
=> Resize(new MagickGeometry(width, height));
251254

src/Magick.NET/Native/MagickImage.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ private unsafe sealed partial class NativeMagickImage : NativeInstance, INativeM
380380
public partial IntPtr Distort(DistortMethod method, bool bestfit, double[] arguments, nuint length);
381381

382382
[Throws]
383-
[SetInstance]
384-
public partial void Edge(double radius);
383+
public partial IntPtr Edge(double radius);
385384

386385
[Throws]
387386
[SetInstance]

0 commit comments

Comments
 (0)