pub struct Collector { /* fields omitted */ }
Collect frames that will be encoded
Note that writing will finish only when the collector is dropped.
Collect frames on another thread, or call drop(collector)
before calling writer.write()
!
Frame index starts at 0. Set each frame only once, but you can set them in any order.
Frame delay is in GIF units (1/100s).
Read and decode a PNG file from disk. Frame index starts at 0. Frame delay is in GIF units (1/100s)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Sets value
as a parameter of self
.