Rachel
Toggle table of contents
3.7.2
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.components.image
/
love.yinlin.compose.image.decoder
/
ImageDecoder
Image
Decoder
@
Stable
interface
ImageDecoder
:
AutoCloseable
仅由单一协程访问;frame 返回的位图所有权转移到 Compose,close 不回收已发布帧。 frame 取消后合成状态可能不完整,调用方必须关闭解码器,不再复用。
Members
Properties
durations
Link copied to clipboard
abstract
val
durations
:
IntArray
original
Size
Link copied to clipboard
abstract
val
originalSize
:
IntSize
repeat
Count
Link copied to clipboard
abstract
val
repeatCount
:
Int
size
Link copied to clipboard
abstract
val
size
:
IntSize
Functions
close
Link copied to clipboard
expect
abstract
fun
close
(
)
frame
Link copied to clipboard
abstract
suspend
fun
frame
(
index
:
Int
)
:
ImageBitmap