@@ -685,6 +685,20 @@ export interface IMagickImage extends IDisposable {
685
685
*/
686
686
chop ( geometry : MagickGeometry ) : void ;
687
687
688
+ /**
689
+ * Chop image (remove vertical or horizontal subregion of image).
690
+ * @param x The X offset from origin.
691
+ * @param width The width of the part to chop horizontally.
692
+ */
693
+ chopHorizontal ( x : number , width : number ) : void ;
694
+
695
+ /**
696
+ * Chop image (remove vertical or horizontal subregion of image).
697
+ * @param y The Y offset from origin.
698
+ * @param height The height of the part to chop vertically.
699
+ */
700
+ chopVertical ( y : number , height : number ) : void ;
701
+
688
702
/**
689
703
* A variant of adaptive histogram equalization in which the contrast amplification is limited,
690
704
* so as to reduce this problem of noise amplification.
@@ -2691,6 +2705,14 @@ export class MagickImage extends NativeInstance implements IMagickImage {
2691
2705
} ) ;
2692
2706
}
2693
2707
2708
+ chopHorizontal ( x : number , width : number ) : void {
2709
+ this . chop ( new MagickGeometry ( x , 0 , width , 0 ) ) ;
2710
+ }
2711
+
2712
+ chopVertical ( y : number , height : number ) : void {
2713
+ this . chop ( new MagickGeometry ( 0 , y , 0 , height ) ) ;
2714
+ }
2715
+
2694
2716
clahe ( xTiles : number , yTiles : number , numberBins : number , clipLimit : number ) : void ;
2695
2717
clahe ( xTiles : Percentage , yTiles : Percentage , numberBins : number , clipLimit : number ) : void ;
2696
2718
clahe ( xTiles : number | Percentage , yTiles : number | Percentage , numberBins : number , clipLimit : number ) : void {
0 commit comments