Class Magick::ImageList
In: lib/RMagick.rb
Parent: Object

Methods

*   <<   <=>   []   []=   __map__   __map__!   clear   clone   collect   collect!   compact   compact!   concat   copy   cur_image   delay=   delete   delete_at   delete_if   dup   eql?   fill   find_all   from_blob   indexes   indices   insert   inspect   is_an_image   is_an_image_array   iterations=   last   map!   marshal_dump   marshal_load   method_missing   new   new_image   nitems   partition   ping   pop   push   read   reject   reject!   replace   respond_to?   reverse   reverse!   reverse_each   scene=   select   set_current   shift   slice   slice!   ticks_per_second=   to_a   uniq   uniq!   unshift   values_at  

Included Modules

Comparable Enumerable

External Aliases

length -> size
remap -> affinity
  ImageMagic used affinity in 6.4.3, switch to remap in 6.4.4.
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
__map__(&block)

Alias for collect

__map__!(&block)

Alias for collect!

override Enumerable#collect

Make a deep copy

Return the current image

Set same delay for all images

Override Enumerable‘s find_all

indexes(*args)

Alias for values_at

indices(*args)

Alias for values_at

Call inspect for all the images

Set the number of iterations of an animated GIF

map!(&block)

Alias for collect!

Custom marshal/unmarshal for Ruby 1.8.

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

override Enumerable‘s reject

Allow scene to be set to nil

select(&block)

Alias for find_all

@scene -> new object

Protected Instance methods

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

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

[Validate]