ImageRequest

interface ImageRequest

Functions

Link copied to clipboard
abstract fun setDrawable(drawable: Drawable)

设置图片从 Drawable 对象获取

Link copied to clipboard
abstract fun setFile(file: ScriptFile)

设置图片从本地文件

Link copied to clipboard
abstract fun setFormat(format: (ImageFormats) -> ImageFormat)

设置图片格式

Link copied to clipboard
abstract fun setUrl(url: String)

设置图片从网络获取