Layer.loadImages

Function/Meaning

Image loading

Type
Layerclassmethod of
Syntax
loadImages(image, colorkey=clNone)
Arguments
image

Specify the image storage to read.
If there is an image storage with _m added to the storage name (excluding the extension) specified here, it will be read as a mask (opacity) image.
If there is an image storage with _p added to the storage name (excluding the extension) specified here, it will be read as an area image.

colorkey

Specify the color key (transparent color) of the image to be imported.
If you specify a color in the 0xRRGGBB format, that color is used as the color key. If you specify clPalIdx plus an arbitrary palette index, the palette index becomes transparent (for images of 256 colors or less).
If you specify clAdapt, the most used color in the top line of the image is automatically made transparent.
If you specify clAlphaMat plus a number that represents a color in the 0xRRGGBB format, the image is overlaid on top of that color using an alpha blend (ltAlpha method).
For example, (clAlphaMat + 0xffffff) will overlay the imported image on top of the white color.
All images will be opaque (note that all images will be opaque, but no tag information will be changed in this mode).

Return value

Dictionary array of tag information

Explanation

Load the image into the layer.
This method changes the image size of the layer, but does not change the display size of the layer unless the image size is smaller than the display size of the layer.
As a return value, a dictionary array of tag information (information about the image itself, such as the layer type and display position of the image) is returned.
Be careful not to confuse it with the meaning of "tag" in KAG.
If the image has no tag information, null will be returned. In the current version, tag information can only be in PNG, TLG5 / 6 format.
See Image Format Converter for the information available.