Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Raphael-js 创建图表;是否可以为拉帕赫尔论文设置背景图像?
谢谢,
我建议你添加一张图片:
var img = paper.image("foo.png", 10, 10, 80, 80); img.attr({ "clip-rect": "20,20,30,30" });
图像是通过裁剪绘制的,以裁剪出您想要的部分,您可以使用img.translate(x,y)或通过paper.image.
img.translate(x,y)
paper.image