diff --git a/doc/function/index.txt b/doc/function/index.txt index 16aaf465..3a380b9e 100644 --- a/doc/function/index.txt +++ b/doc/function/index.txt @@ -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 <<< diff --git a/doc/function/to_image.txt b/doc/function/to_image.txt new file mode 100644 index 00000000..2947c05a --- /dev/null +++ b/doc/function/to_image.txt @@ -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") == "image1.png"