Add @JvmOverloads for BufferedImage.toExternalImage

This commit is contained in:
Him188 2020-04-10 13:42:16 +08:00
parent 7357169560
commit 882c623823

View File

@ -36,6 +36,7 @@ import javax.imageio.ImageIO
/** /**
* 读取 [BufferedImage] 的属性, 然后构造 [ExternalImage] * 读取 [BufferedImage] 的属性, 然后构造 [ExternalImage]
*/ */
@JvmOverloads
@Throws(IOException::class) @Throws(IOException::class)
fun BufferedImage.toExternalImage(formatName: String = "gif"): ExternalImage { fun BufferedImage.toExternalImage(formatName: String = "gif"): ExternalImage {
val digest = MessageDigest.getInstance("md5") val digest = MessageDigest.getInstance("md5")