@@ -4057,7 +4057,7 @@ public void Lower(uint size)
40574057 /// </summary>
40584058 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
40594059 public void Magnify ( )
4060- {
4060+ {
40614061 using var mutator = new Mutator ( _nativeInstance ) ;
40624062 mutator . Magnify ( ) ;
40634063 }
@@ -4067,23 +4067,32 @@ public void Magnify()
40674067 /// </summary>
40684068 /// <param name="size">The width and height of the pixels neighborhood.</param>
40694069 public void MeanShift ( uint size )
4070- => MeanShift ( size , size ) ;
4070+ {
4071+ using var mutator = new Mutator ( _nativeInstance ) ;
4072+ mutator . MeanShift ( size ) ;
4073+ }
40714074
40724075 /// <summary>
40734076 /// Delineate arbitrarily shaped clusters in the image.
40744077 /// </summary>
40754078 /// <param name="size">The width and height of the pixels neighborhood.</param>
40764079 /// <param name="colorDistance">The color distance.</param>
40774080 public void MeanShift ( uint size , Percentage colorDistance )
4078- => MeanShift ( size , size , colorDistance ) ;
4081+ {
4082+ using var mutator = new Mutator ( _nativeInstance ) ;
4083+ mutator . MeanShift ( size , colorDistance ) ;
4084+ }
40794085
40804086 /// <summary>
40814087 /// Delineate arbitrarily shaped clusters in the image.
40824088 /// </summary>
40834089 /// <param name="width">The width of the pixels neighborhood.</param>
40844090 /// <param name="height">The height of the pixels neighborhood.</param>
40854091 public void MeanShift ( uint width , uint height )
4086- => MeanShift ( width , height , new Percentage ( 10 ) ) ;
4092+ {
4093+ using var mutator = new Mutator ( _nativeInstance ) ;
4094+ mutator . MeanShift ( width , height ) ;
4095+ }
40874096
40884097 /// <summary>
40894098 /// Delineate arbitrarily shaped clusters in the image.
@@ -4092,7 +4101,10 @@ public void MeanShift(uint width, uint height)
40924101 /// <param name="height">The height of the pixels neighborhood.</param>
40934102 /// <param name="colorDistance">The color distance.</param>
40944103 public void MeanShift ( uint width , uint height , Percentage colorDistance )
4095- => _nativeInstance . MeanShift ( width , height , PercentageHelper . ToQuantum ( nameof ( colorDistance ) , colorDistance ) ) ;
4104+ {
4105+ using var mutator = new Mutator ( _nativeInstance ) ;
4106+ mutator . MeanShift ( width , height , colorDistance ) ;
4107+ }
40964108
40974109 /// <summary>
40984110 /// Filter image by replacing each pixel component with the median color in a circular neighborhood.
0 commit comments