Struct rog_anime::AnimeGif [−][src]
pub struct AnimeGif(_, _);
Expand description
A gif animation. This is a collection of frames from the gif, and a duration that the animation should be shown for.
Implementations
pub fn from_diagonal_gif(
file_name: &Path,
duration: AnimTime,
brightness: f32
) -> Result<Self, AnimeError>
pub fn from_diagonal_gif(
file_name: &Path,
duration: AnimTime,
brightness: f32
) -> Result<Self, AnimeError>
Create an animation using the 74x36 ASUS gif format
pub fn from_diagonal_png(
file_name: &Path,
duration: AnimTime,
brightness: f32
) -> Result<Self, AnimeError>
pub fn from_diagonal_png(
file_name: &Path,
duration: AnimTime,
brightness: f32
) -> Result<Self, AnimeError>
Create an animation using the 74x36 ASUS gif format from a png
Create an animation using a gif of any size. This method must precompute the result.
Make a static gif out of a greyscale png. If no duration is specified then the default
will be 1 second long. If AnimTime::Cycles
is specified for duration
then this can
be considered how many seconds the image will show for.
Get a slice of the frames this gif has
Get the frame count
Get total gif time for one run
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AnimeGif
impl UnwindSafe for AnimeGif
Blanket Implementations
Mutably borrows from an owned value. Read more