wand.sequence — Sequences
New in version 0.3.0.
-
class
wand.sequence.Sequence(image) The list-like object that contains every
SingleImagein theImagecontainer. It implementscollections.Sequenceprototocol.New in version 0.3.0.
-
current_index (
numbers.Integral) The current index of its internal iterator.Note
It’s only for internal use.
-
index_context(*args, **kwds) Scoped setter of
current_index. Should be used forwithstatement e.g.:with image.sequence.index_context(3): print(image.size)
Note
It’s only for internal use.
-
-
class
wand.sequence.SingleImage(wand, container, c_original_resource) Each single image in
Imagecontainer. For example, it can be a frame of GIF animation.Note that all changes on single images are invisible to their containers until they are
close()d (destroy()ed).New in version 0.3.0.
-
container= None (
wand.image.Image) The container image.
-
delay (
numbers.Integral) The delay to pause before display the next image (in thesequenceof itscontainer). It’s hundredths of a second.
-
index (
numbers.Integral) The index of the single image in thecontainerimage.
-