Name | ImageTag |
Prefix | image@ |
Base Type | ElementTag |
Identity Format | The identity format for ImageTag is a hex encoding of the image's raw bytes, in order.
Each byte is encoded as an individual big-endian hexadecimal pair, like "FF" for byte=255, "00" for byte=0, "0F" for 15, "F0" for 240, ... etc. Alternatively, an image's identity format can be an image id (from images loaded in with Image), see description for more information. |
Description | ImageTags represent an image of any supported format.
They are represented by either a hex encoding of their bytes or their image id, but new images can also be created by providing a MapTag with the following keys: - "width": the new image's width, required. - "height": the new image's height, required. - "background": a ColorTag for the new image's background, optional. For id-based images, the image will directly reference the image loaded in under that id, so for example:
See ImageTag.copy for getting normal image objects from id-based ones. |
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/ImageTag.java#L30 |