@@ -1102,7 +1102,10 @@ public void AdaptiveThreshold(uint width, uint height, Percentage biasPercentage
11021102 /// <param name="noiseType">The type of noise that should be added to the image.</param>
11031103 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
11041104 public void AddNoise ( NoiseType noiseType )
1105- => AddNoise ( noiseType , ImageMagick . Channels . Undefined ) ;
1105+ {
1106+ using var mutator = new Mutator ( _nativeInstance ) ;
1107+ mutator . AddNoise ( noiseType ) ;
1108+ }
11061109
11071110 /// <summary>
11081111 /// Add noise to the specified channel of the image with the specified noise type.
@@ -1111,7 +1114,10 @@ public void AddNoise(NoiseType noiseType)
11111114 /// <param name="channels">The channel(s) where the noise should be added.</param>
11121115 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
11131116 public void AddNoise ( NoiseType noiseType , Channels channels )
1114- => AddNoise ( noiseType , 1.0 , channels ) ;
1117+ {
1118+ using var mutator = new Mutator ( _nativeInstance ) ;
1119+ mutator . AddNoise ( noiseType , channels ) ;
1120+ }
11151121
11161122 /// <summary>
11171123 /// Add noise to image with the specified noise type.
@@ -1120,7 +1126,10 @@ public void AddNoise(NoiseType noiseType, Channels channels)
11201126 /// <param name="attenuate">Attenuate the random distribution.</param>
11211127 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
11221128 public void AddNoise ( NoiseType noiseType , double attenuate )
1123- => AddNoise ( noiseType , attenuate , ImageMagick . Channels . Undefined ) ;
1129+ {
1130+ using var mutator = new Mutator ( _nativeInstance ) ;
1131+ mutator . AddNoise ( noiseType , attenuate ) ;
1132+ }
11241133
11251134 /// <summary>
11261135 /// Add noise to the specified channel of the image with the specified noise type.
@@ -1130,7 +1139,10 @@ public void AddNoise(NoiseType noiseType, double attenuate)
11301139 /// <param name="channels">The channel(s) where the noise should be added.</param>
11311140 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
11321141 public void AddNoise ( NoiseType noiseType , double attenuate , Channels channels )
1133- => _nativeInstance . AddNoise ( noiseType , attenuate , channels ) ;
1142+ {
1143+ using var mutator = new Mutator ( _nativeInstance ) ;
1144+ mutator . AddNoise ( noiseType , attenuate , channels ) ;
1145+ }
11341146
11351147 /// <summary>
11361148 /// Affine Transform image.
0 commit comments