Sha256: 2cfb311ebce09f23cf714b3bb6f6605125a04a917110ebf33b5fdf3249eda7c0

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 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 remap
			# TODO: Implement. Just here to avoid RMagick 2.9 errors.
		end
    
    def to_blob(&add)
      # TODO Support lists.
      first.to_blob(&add)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rmagick4j-0.4.0-java lib/rmagick4j/image_list.rb
rmagick4j-0.3.9-java lib/rmagick4j/image_list.rb
rmagick4j-0.3.8 lib/rmagick4j/image_list.rb
rmagick4j-0.3.7 lib/rmagick4j/image_list.rb