通常在画布上调整图像大小时,您只需使用drawImage。以下是Mozilla的示例:// Width and height is the image's size on the target canvas. drawImage(image, x, y, width, height) 更多示例请参见此处;特别是“切片”部分。