wand.sequence — Sequences

New in version 0.3.0.

class wand.sequence.Sequence(image)

The list-like object that contains every SingleImage in the Image container. It implements collections.Sequence prototocol.

New in version 0.3.0.


(numbers.Integral) The current index of its internal iterator.


It’s only for internal use.

index_context(*args, **kwds)

Scoped setter of current_index. Should be used for with statement e.g.:

with image.sequence.index_context(3):


It’s only for internal use.

class wand.sequence.SingleImage(wand, container, c_original_resource)

Each single image in Image container. For example, it can be a frame of GIF animation.

Note that all changes on single images are invinsilble to their containers until they are close()d (destroy()ed).

New in version 0.3.0.

container = None

(wand.image.Image) The container image.


(numbers.Integral) The delay to pause before display the next image (in the sequence of its container). It’s hundredths of a second.


(numbers.Integral) The index of the single image in the container image.

Related Topics

This Page