Name | Image |
Syntax | image [id:<id>] [load [image:<image>/path:<path>]]/[save [path:<path>] [format:<format>]]/[unload] |
Short Description | Loads, saves, and unloads images. |
Full Description | Loads, saves, and unloads images.
With "load", specify either a file path to read from or an image object to load. With "save", specify a file path to save the image to and a format to save the image in (e.g. "png", "jpg", "bmp"...), defaults to "png". For both of these the starting path is "plugins/Denizen". Use waitable syntax ("- ~image") when loading or saving from a file to avoid locking up the server during file IO, refer to ~waitable. All uses of the image command must include the "id:" argument. This is any arbitrary name, as plaintext or from a tag, to uniquely and globally identify the image object in memory. This ID can only be used by one image object at a time. IDs are stored when "load" is used, and only removed when "unload" is used. |
Related Tags | None
|
Usage Example |
|
Usage Example |
|
Usage Example |
|
Group | image |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/scripts/commands/core/ImageCommand.java#L27 |