Sha256: bc242b41e423f4189426e3c010e0c68051e5a6c14359762cb761de37fec50cd6

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

module Magick
  
  class ImageList < Array

    def flatten_images
      img = @images.map { |obj| obj._image }
      
      image = img.inject do |memo, obj|
        memo.flatten(obj)
      end
      
      Image.from_image(image)
    end
    
    def to_blob(&add)
      # TODO Support lists.
      first.to_blob(&add)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rmagick4j-0.3.5 lib/rmagick4j/image_list.rb
rmagick4j-0.3.6 lib/rmagick4j/image_list.rb