Bitmap.save

機能/意味
Saving images
タイプ
Bitmapクラスのメソッド
構文
save(name, type="bmp", meta=null)
引数
name  Specify the storage name to save.
type  Specify the image format to save as a character string. In the current version, the following formats can be specified.

"bmp" or "bmp32"
 32bpp BMP. Also save the alpha channel (mask).

"bmp24"
 24bpp BMP. Alpha channels (masks) are not saved.

"bmp8"
 8bpp BMP. Alpha channels (masks) are not saved. Images are color reduced using 4x4 organized dithering with a fixed palette of 252 colors.

"jpg"
 JPEG. Alpha channels (masks) are not saved. Images are stored at 90% quality.

"jpg###"
 JPEG. Alpha channels (masks) are not saved. Images are saved with the quality specified by ###. "jpg010" is 10%, "jpg100" is 100%, and "jpg080" is 80%.

"png"
 32bpp PNG. Also save the alpha channel (mask).

"png24"
 24bpp PNG. Alpha channels (masks) are not saved.

"tlg5"
 It is TLG5 of 32bpp. Also save the alpha channel (mask).

"tlg524"
 It is TLG5 of 24bpp. Alpha channels (masks) are not saved.

"tlg6"
 It is TLG6 of 32bpp. Also save the alpha channel (mask).

"tlg624"
 It is TLG6 of 24bpp. Alpha channels (masks) are not saved.

meta  For TLG format, specify the tag information to be saved in dictionary format.
 For other formats, specify additional options (1.3.0 or later).
 Options that can be specified can be obtained with getSaveOption.
戻り値
なし (void)
説明
 Saves a file in the image format specified by type to the storage (file) specified by name.
参照
Bitmap.getSaveOption