Codec.DisposalMethod

class DisposalMethod

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.

Members:

kKeep :

The next frame should be drawn on top of this one.

In a GIF, a value of 0 (not specified) is also treated as Keep.

kRestoreBGColor :

Similar to Keep, except the area inside this frame’s rectangle should be cleared to the BackGround color (transparent) before drawing the next frame.

kRestorePrevious :

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 as RestorePrevious.

Methods

__init__

__init__(self: skia.Codec.DisposalMethod, value: int) -> None

Attributes

kKeep

kRestoreBGColor

kRestorePrevious

name

value

Methods

DisposalMethod.__init__(self: skia.Codec.DisposalMethod, value: int) None

__init__(self: skia.Codec.DisposalMethod, value: int) -> None

Attributes

DisposalMethod.kKeep = <DisposalMethod.kKeep: 1>
DisposalMethod.kRestoreBGColor = <DisposalMethod.kRestoreBGColor: 2>
DisposalMethod.kRestorePrevious = <DisposalMethod.kRestorePrevious: 3>
DisposalMethod.name
DisposalMethod.value