@@ -1384,7 +1384,10 @@ public void Blur(double radius, double sigma, Channels channels)
13841384 /// <param name="size">The size of the border.</param>
13851385 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
13861386 public void Border ( uint size )
1387- => Border ( size , size ) ;
1387+ {
1388+ using var mutator = new Mutator ( _nativeInstance ) ;
1389+ mutator . Border ( size ) ;
1390+ }
13881391
13891392 /// <summary>
13901393 /// Add a border to the image.
@@ -1394,8 +1397,8 @@ public void Border(uint size)
13941397 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
13951398 public void Border ( uint width , uint height )
13961399 {
1397- var rectangle = new MagickRectangle ( 0 , 0 , width , height ) ;
1398- _nativeInstance . Border ( rectangle ) ;
1400+ using var mutator = new Mutator ( _nativeInstance ) ;
1401+ mutator . Border ( width , height ) ;
13991402 }
14001403
14011404 /// <summary>
@@ -1404,7 +1407,10 @@ public void Border(uint width, uint height)
14041407 /// <param name="percentage">The size of the border.</param>
14051408 /// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
14061409 public void Border ( Percentage percentage )
1407- => Border ( ( uint ) ( Width * percentage ) , ( uint ) ( Height * percentage ) ) ;
1410+ {
1411+ using var mutator = new Mutator ( _nativeInstance ) ;
1412+ mutator . Border ( percentage ) ;
1413+ }
14081414
14091415 /// <summary>
14101416 /// Changes the brightness and/or contrast of an image. It converts the brightness and
0 commit comments