diff options
author | Soumith Chintala <soumith@gmail.com> | 2016-04-19 07:11:53 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2016-04-19 07:11:53 +0300 |
commit | ecdcfdb315101d7376e8983dc7460c47355d7ef4 (patch) | |
tree | 1ff327328a1fdace66e44b1a1cd7daa069420e08 | |
parent | fff025cd744093451ee2fcad4387dd7fff32094f (diff) |
Update drawing.md
-rw-r--r-- | doc/drawing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/drawing.md b/doc/drawing.md index 8bfe6bb..de1044c 100644 --- a/doc/drawing.md +++ b/doc/drawing.md @@ -3,7 +3,7 @@ This section includes simple routines to draw on images. <a name="image.drawText"></a> -### [res] image.drawText(src, x, y, [options]) ### +### [res] image.drawText(src, text, x, y, [options]) ### Draws text onto a 3-channel Tensor (C x H x W) at the x-offset `x` and y-offset `y`. The `options` table can be passed in to set color, background color, in-place etc. @@ -21,4 +21,4 @@ Example: image.drawText(image.lena(), "hello\nworld", 10, 10) image.drawText(image.lena(), "hello\nworld", 10, 20,{color = {0, 255, 0}, size = 5}) image.drawText(image.lena(), "hello\nworld", 10, 20,{color = {0, 255, 0}, bg = {255, 0, 0}, size = 5}) -```
\ No newline at end of file +``` |