Layer.saveLayerImage

Function/Meaning

Save image

Type
Layerclassmethod of
Syntax
saveLayerImage(name, type=bmp)
Arguments
name

Specify the storage name to save.

type

Specify the image format to save as a character string.
The following formats can be specified in the current version.

  • "bmp" or "bmp32" : It is a 32bpp BMP. It also saves the alpha channel (mask).
  • "bmp24" : It is a 24bpp BMP. The alpha channel (mask) is not saved.
  • "bmp8" : 8bpp BMP. The alpha channel (mask) is not saved. The image is reduced in color using 4x4 organized dithering with a fixed palette of 252 colors.
  • "jpg" : It's JPEG. The alpha channel (mask) is not saved. Images are saved with 90% quality.
  • "jpg###" : It's JPEG. The alpha channel (mask) is not saved. The image will be saved with the quality specified by ###. "jpg010" is 10%, "jpg100" is 100%, and "jpg080" is 80%.
  • "png" : 32bpp PNG. It also saves the alpha channel (mask).
  • "png24" : 24bpp PNG. The alpha channel (mask) is not saved.
  • "tlg5" : It is a 32bpp TLG5. It also saves the alpha channel (mask).
  • "tlg524" : It is a 24bpp TLG5. The alpha channel (mask) is not saved.
  • "tlg6" : It is a 32bpp TLG6. It also saves the alpha channel (mask).
  • "tlg624" : It is a 24bpp TLG6. The alpha channel (mask) is not saved.
Return value
None (void)
Explanation

Saves the file in the storage (file) specified by name in the image format specified by type.
Only layer images are saved, area images cannot be saved.