@@ -1019,7 +1019,10 @@ public void AdaptiveSharpen(double radius, double sigma, Channels channels)
10191019 /// <param name="height">The height of the pixel neighborhood.</param>
10201020 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
10211021 public void AdaptiveThreshold ( uint width , uint height )
1022- => AdaptiveThreshold ( width , height , 0.0 , ImageMagick . Channels . Undefined ) ;
1022+ {
1023+ using var mutator = new Mutator ( _nativeInstance ) ;
1024+ mutator . AdaptiveThreshold ( width , height ) ;
1025+ }
10231026
10241027 /// <summary>
10251028 /// Local adaptive threshold image.
@@ -1030,7 +1033,10 @@ public void AdaptiveThreshold(uint width, uint height)
10301033 /// <param name="channels">The channel(s) that should be thresholded.</param>
10311034 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
10321035 public void AdaptiveThreshold ( uint width , uint height , Channels channels )
1033- => AdaptiveThreshold ( width , height , 0.0 , channels ) ;
1036+ {
1037+ using var mutator = new Mutator ( _nativeInstance ) ;
1038+ mutator . AdaptiveThreshold ( width , height , channels ) ;
1039+ }
10341040
10351041 /// <summary>
10361042 /// Local adaptive threshold image.
@@ -1041,7 +1047,10 @@ public void AdaptiveThreshold(uint width, uint height, Channels channels)
10411047 /// <param name="bias">Constant to subtract from pixel neighborhood mean (+/-)(0-QuantumRange).</param>
10421048 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
10431049 public void AdaptiveThreshold ( uint width , uint height , double bias )
1044- => AdaptiveThreshold ( width , height , bias , ImageMagick . Channels . Undefined ) ;
1050+ {
1051+ using var mutator = new Mutator ( _nativeInstance ) ;
1052+ mutator . AdaptiveThreshold ( width , height , bias ) ;
1053+ }
10451054
10461055 /// <summary>
10471056 /// Local adaptive threshold image.
@@ -1053,7 +1062,10 @@ public void AdaptiveThreshold(uint width, uint height, double bias)
10531062 /// <param name="channels">The channel(s) that should be thresholded.</param>
10541063 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
10551064 public void AdaptiveThreshold ( uint width , uint height , double bias , Channels channels )
1056- => _nativeInstance . AdaptiveThreshold ( width , height , bias , channels ) ;
1065+ {
1066+ using var mutator = new Mutator ( _nativeInstance ) ;
1067+ mutator . AdaptiveThreshold ( width , height , bias , channels ) ;
1068+ }
10571069
10581070 /// <summary>
10591071 /// Local adaptive threshold image.
@@ -1064,7 +1076,10 @@ public void AdaptiveThreshold(uint width, uint height, double bias, Channels cha
10641076 /// <param name="biasPercentage">Constant to subtract from pixel neighborhood mean.</param>
10651077 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
10661078 public void AdaptiveThreshold ( uint width , uint height , Percentage biasPercentage )
1067- => AdaptiveThreshold ( width , height , biasPercentage , ImageMagick . Channels . Undefined ) ;
1079+ {
1080+ using var mutator = new Mutator ( _nativeInstance ) ;
1081+ mutator . AdaptiveThreshold ( width , height , biasPercentage ) ;
1082+ }
10681083
10691084 /// <summary>
10701085 /// Local adaptive threshold image.
0 commit comments