Skip to content

Commit

Permalink
Corrected channels for the Fx methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Aug 11, 2024
1 parent 315db72 commit 318c2c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Magick.NET/MagickImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2859,7 +2859,7 @@ public void Frame(uint width, uint height, int innerBevel, int outerBevel)
/// <param name="expression">The expression to apply.</param>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
public void Fx(string expression)
=> Fx(expression, ImageMagick.Channels.Undefined);
=> Fx(expression, ImageMagick.Channels.All);

/// <summary>
/// Applies a mathematical expression to the image.
Expand Down
2 changes: 1 addition & 1 deletion src/Magick.NET/MagickImageCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ public IMagickImage<QuantumType> Flatten(IMagickColor<QuantumType> backgroundCol
/// <returns>The resulting image of the fx operation.</returns>
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
public IMagickImage<QuantumType> Fx(string expression)
=> Fx(expression, Channels.Undefined);
=> Fx(expression, Channels.All);

/// <summary>
/// Applies a mathematical expression to the images and returns the result.
Expand Down

0 comments on commit 318c2c4

Please sign in to comment.