Tim Hunter wrote:

> 
> require 'RMagick'
> 
> page = Magick::Image.new(128, 128) {self.background_color = "black" }
> back = Magick::Image.new(128, 128) {self.background_color = "cyan" }
> back.crop!(29, 13, 71, 73)
> 
> page.composite!(back, Magick::CenterGravity, Magick::OverCompositeOp)
> 
> front = Magick::Image.new(10, 10) {self.background_color = "red" }
> result = page.composite(front, 5, 5, Magick::OverCompositeOp)
> p result
> result.display

Thanks so much,that's what I want!
-- 
Posted via http://www.ruby-forum.com/.