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