class CompositorNode::Engines::ImageMagick

Constants

MULTIPLY
OVERLAY

Public Class Methods

blend(source_a, source_b, x_offset, y_offset, method) click to toggle source
# File lib/compositor_node/engines/image_magick.rb, line 30
def self.blend(source_a, source_b, x_offset, y_offset, method)
  source_a.composite(source_b, x_offset, y_offset, method)
end
crop(source, x_offset, y_offset, width, height) click to toggle source
# File lib/compositor_node/engines/image_magick.rb, line 34
def self.crop(source, x_offset, y_offset, width, height)
  source.crop(x_offset, y_offset, width, height)
end
height(source) click to toggle source
# File lib/compositor_node/engines/image_magick.rb, line 26
def self.height(source)
  source.rows
end
read(source) click to toggle source
# File lib/compositor_node/engines/image_magick.rb, line 10
def self.read(source)
  ::Magick::ImageList.new(source)
end
resize(source, width, height) click to toggle source
# File lib/compositor_node/engines/image_magick.rb, line 18
def self.resize(source, width, height)
  source.resize(width, height)
end
width(source) click to toggle source
# File lib/compositor_node/engines/image_magick.rb, line 22
def self.width(source)
  source.columns
end
write(source, path) click to toggle source
# File lib/compositor_node/engines/image_magick.rb, line 14
def self.write(source, path)
  source.write(path)
end