目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Paper.image(src, x, y, width, height)

优质
小牛编辑
118浏览
2023-12-01

Places an image on the surface

Parameters

  1. srcstringURI of the source image
  2. xnumberx offset position
  3. ynumbery offset position
  4. widthnumberwidth of the image
  5. heightnumberheight of the image

Returns: object the image element

or

Returns: object Snap element object with type image

Usage

var c = paper.image("apple.png", 10, 10, 80, 80);