From ecdcfdb315101d7376e8983dc7460c47355d7ef4 Mon Sep 17 00:00:00 2001 From: Soumith Chintala Date: Tue, 19 Apr 2016 00:11:53 -0400 Subject: Update drawing.md --- doc/drawing.md | 4 ++-- 1 file 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. -### [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 +``` -- cgit v1.2.3