Method: Frameit::MacEditor#put_device_into_background
- Defined in:
- lib/frameit/mac_editor.rb
#put_device_into_background(background) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/frameit/mac_editor.rb', line 9 def put_device_into_background(background) self.top_space_above_device = offset['titleHeight'] # needed for centering the title @image = background.composite(image, "png") do |c| c.compose "Over" c.geometry offset['offset'] end return image end |