mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 14:20:24 +08:00
Add @JvmOverloads
for BufferedImage.toExternalImage
This commit is contained in:
parent
7357169560
commit
882c623823
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user