Type Alias DisposalMethod
pub type DisposalMethod = SkCodecAnimation_DisposalMethod;Expand description
This specifies how the next frame is based on this frame.
Names are based on the GIF 89a spec.
The numbers correspond to values in a GIF.
Variants:
DisposalMethod::Keep: The next frame should be drawn on top of this one. In a GIF, a value of 0 (not specified) is also treated asKeep.DisposalMethod::RestoreBGColor: Similar toKeep, except the area inside this frame’s rectangle should be cleared to the BackGround color (transparent) before drawing the next frame.DisposalMethod::RestorePrevious: The next frame should be drawn on top of the previous frame - i.e. disregarding this one. In a GIF, a value of 4 is also treated asRestorePrevious.
Aliased Type§
#[repr(i32)]pub enum DisposalMethod {
Keep = 1,
RestoreBGColor = 2,
RestorePrevious = 3,
}