drawimage

drawimagedrawimage
  1. Besides images , you can also draw the contents of another canvas or the current frame of a video element with drawImage () .

    除了图像外,您还可以利用drawImage()绘制另一个画布或一个video元素当前帧的内容。

  2. The background , the runner , and all the good guys and bad guys are images that the game draws with the drawImage () method .

    背景、跑步者以及所有好人和坏人都是游戏使用drawImage()方法绘制的图像。

  3. You can draw an entire image , or any rectangular area within an image , anywhere inside a canvas with the Canvas 2D context 's drawImage () method , optionally scaling the image along the way .

    您可以使用Canvas2D上下文的drawImage()方法在画布内的任何地方绘制一个完整的图像,或图像内的任何矩形区域,有选择地沿着路线缩放图像。