diff options
author | wout <wout@impinc.co.uk> | 2012-12-28 00:17:04 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-28 00:17:04 +0100 |
commit | 54cc2cc1aef573d247fd8cecf0870f67e2ffbd4e (patch) | |
tree | 6c1ab7cc9158a9ff24deaacfa526858636a90a8b /README.md | |
parent | d97618864b73d4347d231369403ebfb16cdf9d62 (diff) | |
download | svg.js-54cc2cc1aef573d247fd8cecf0870f67e2ffbd4e.tar.gz svg.js-54cc2cc1aef573d247fd8cecf0870f67e2ffbd4e.zip |
Added image size as arguments
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -79,7 +79,8 @@ text.font({ ### Image When creating images the width and height values should be defined: ```javascript -var image = draw.image('/path/to/image.jpg').move(100, 100).size(200, 200); +// image(src, width, height) +var image = draw.image('/path/to/image.jpg', 200, 200).move(100, 100); ``` |