mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
add docs
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
Function: import_image
|
||||||
|
|
||||||
|
--Usage--
|
||||||
|
> import_image(image_path)
|
||||||
|
|
||||||
|
Load an image from outside the data folder. Intended for use from the CLI.
|
||||||
|
|
||||||
|
--Parameters--
|
||||||
|
! Parameter Type Description
|
||||||
|
| @input@ [[type:string]] Full path of the image to load
|
||||||
|
|
||||||
|
--Examples--
|
||||||
|
> import_image("D:/Art/Ajani.png")
|
||||||
@@ -93,6 +93,7 @@ These functions are built into the program, other [[type:function]]s can be defi
|
|||||||
| [[fun:rotate_image]] Rotate an image.
|
| [[fun:rotate_image]] Rotate an image.
|
||||||
| [[fun:drop_shadow]] Add a drop shadow to an image.
|
| [[fun:drop_shadow]] Add a drop shadow to an image.
|
||||||
| [[fun:symbol_variation]] Render a variation of a [[type:symbol]].
|
| [[fun:symbol_variation]] Render a variation of a [[type:symbol]].
|
||||||
|
| [[fun:import_image]] Load an image from outside the data folder.
|
||||||
| [[fun:built_in_image]] Return an image built into the program.
|
| [[fun:built_in_image]] Return an image built into the program.
|
||||||
|
|
||||||
! Cards <<<
|
! Cards <<<
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ $built_in_functions = array(
|
|||||||
'rotate' =>'',
|
'rotate' =>'',
|
||||||
'drop_shadow' =>'',
|
'drop_shadow' =>'',
|
||||||
'symbol_variation' =>'',
|
'symbol_variation' =>'',
|
||||||
|
'import_image' =>'',
|
||||||
'built_in_image' =>'',
|
'built_in_image' =>'',
|
||||||
// cards
|
// cards
|
||||||
'new_card' =>'',
|
'new_card' =>'',
|
||||||
|
|||||||
Reference in New Issue
Block a user