Resize
Last updated
Last updated
Resize the image to the specified width and height.
Parameter | Type | Description |
---|---|---|
Width and height parameters are not allowed to be 0 at the same time, but one of them is allowed to be 0, which means that the proportion of the original image is maintained. The other parameter is calculated according to the proportion of the original image according to the non-0 parameter.
The instance of *imgo.Image
.
width
int
The new width of the image.
height
int
The new height of the image.