mirai-core / net.mamoe.mirai.utils / java.awt.image.BufferedImage / toExternalImage

toExternalImage

@JvmOverloads fun BufferedImage.toExternalImage(formatName: String = "png"): ExternalImage

BufferedImage 保存稳临时文件, 然后构造 ExternalImage