Cut the image based on straight coordinates starting from the top left downward.

interface Slice {
    height: number;
    width: number;
    x: number;
    y: number;
}

Properties

Properties

height: number

The height to slice

width: number

The width to slice

x: number

Top left x coordinate

y: number

Top left y coordinate