Commit 018e3679 authored by twanvl's avatar twanvl

documented "to_image"

parent 94e6fb0e
...@@ -9,6 +9,7 @@ These functions are built into the program, other [[type:function]]s can be defi ...@@ -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_number]] Convert any value to a number
| [[fun:to_boolean]] Convert any value to a [[type:boolean]] | [[fun:to_boolean]] Convert any value to a [[type:boolean]]
| [[fun:to_color]] Convert any value to a [[type:color]] | [[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]] | [[fun:to_date]] Convert any value to a [[type:date]]
! Numbers <<< ! Numbers <<<
......
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;" />
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment