@@ -1094,7 +1094,7 @@ public void AdaptiveSharpen(double radius, double sigma, Channels channels)
10941094 /// <param name="height">The height of the pixel neighborhood.</param>
10951095 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
10961096 public void AdaptiveThreshold ( int width , int height )
1097- => AdaptiveThreshold ( width , height , 0 , ImageMagick . Channels . Undefined ) ;
1097+ => AdaptiveThreshold ( width , height , 0.0 , ImageMagick . Channels . Undefined ) ;
10981098
10991099 /// <summary>
11001100 /// Local adaptive threshold image.
@@ -1105,7 +1105,7 @@ public void AdaptiveThreshold(int width, int height)
11051105 /// <param name="channels">The channel(s) that should be thresholded.</param>
11061106 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
11071107 public void AdaptiveThreshold ( int width , int height , Channels channels )
1108- => AdaptiveThreshold ( width , height , 0 , channels ) ;
1108+ => AdaptiveThreshold ( width , height , 0.0 , channels ) ;
11091109
11101110 /// <summary>
11111111 /// Local adaptive threshold image.
@@ -1128,7 +1128,11 @@ public void AdaptiveThreshold(int width, int height, double bias)
11281128 /// <param name="channels">The channel(s) that should be thresholded.</param>
11291129 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
11301130 public void AdaptiveThreshold ( int width , int height , double bias , Channels channels )
1131- => _nativeInstance . AdaptiveThreshold ( width , height , bias , channels ) ;
1131+ {
1132+ Throw . IfNegative ( nameof ( width ) , width ) ;
1133+ Throw . IfNegative ( nameof ( height ) , height ) ;
1134+ _nativeInstance . AdaptiveThreshold ( width , height , bias , channels ) ;
1135+ }
11321136
11331137 /// <summary>
11341138 /// Local adaptive threshold image.
0 commit comments