documented "to_image"

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1467 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-08-03 13:48:02 +00:00
parent ff26cb0a4b
commit 17c766c8fc
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ These functions are built into the program, other [[type:function]]s can be defi
| [[fun:to_number]] Convert any value to a number
| [[fun:to_boolean]] Convert any value to a [[type:boolean]]
| [[fun:to_color]] Convert any value to a [[type:color]]
| [[fun:to_image]] Convert any value to an [[type:image]]
| [[fun:to_date]] Convert any value to a [[type:date]]
! Numbers <<<
+17
View File
@@ -0,0 +1,17 @@
Function: to_image
DOC_MSE_VERSION: since 0.3.8
--Usage--
> to_image(any value)
Convert any value to a [[type:image]].
A string is interpreted as a [[type:filename]].
--Parameters--
! Parameter Type Description
| @input@ ''any type'' Value to convert to an image
--Examples--
>>> to_image("image1.png") == <img src="image1.png" alt='"image1.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />