Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/image.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2016-04-19 07:11:53 +0300
committerSoumith Chintala <soumith@gmail.com>2016-04-19 07:11:53 +0300
commitecdcfdb315101d7376e8983dc7460c47355d7ef4 (patch)
tree1ff327328a1fdace66e44b1a1cd7daa069420e08
parentfff025cd744093451ee2fcad4387dd7fff32094f (diff)
Update drawing.md
-rw-r--r--doc/drawing.md4
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
+```