Class Magick::ImageList
In: ext/RMagick/rmmain.c
lib/RMagick.rb
Parent: Array

Methods

&   *   +   -   <<   <=>   []   []=   __map__   clear   clone   collect   collect!   compact   compact!   concat   copy   cur_image   delay=   delete   delete_at   delete_if   dup   fill   find_all   from_blob   insert   inspect   is_a_image   is_a_image_array   iterations=   map!   method_missing   new   new_image   ping   pop   push   read   reject   reject!   replace   respond_to?   reverse   reverse!   scene=   select   set_cf   shift   slice   slice!   ticks_per_second=   uniq   uniq!   unshift   |  

Included Modules

Comparable

Classes and Modules

Class Magick::ImageList::Montage

External Aliases

display -> __display__
map -> __ary_map__
respond_to? -> __respond_to__?
  Ensure respond_to? answers correctly when we are delegating to Image

Attributes

scene  [R] 

Public Class methods

Initialize new instances

Public Instance methods

Compare ImageLists Compare each image in turn until the result of a comparison is not 0. If all comparisons return 0, then

  return if A.scene != B.scene
  return A.length <=> B.length

Enumerable (or Array) has a map method that conflicts with our own map method. RMagick.so has defined a synonym for that map called Array#ary_map. Here, we define Magick::ImageList#map to allow the use of the Enumerable/Array#map method on ImageList objects.

Make a deep copy

Return the current image

Set same delay for all images

Call inspect for all the images

Set the number of iterations of an animated GIF

The ImageList class supports the Magick::Image class methods by simply sending the method to the current image. If the method isn’t explicitly supported, send it to the current image in the array. If there are no images, send it up the line. Catch a NameError and emit a useful message.

Create a new image and add it to the end

Ping files and concatenate the new images

Read files and concatenate the new images

Allow scene to be set to nil

@scene -> new object

Protected Instance methods

Ensure array is always an array of Magick::Image objects

Find old current image, update @scene cfid is the id of the old current image.

[Validate]