Method: MotionPrime::ImageDrawElement#draw_in

Defined in:
motion-prime/elements/draw/image.rb

#draw_in(rect) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'motion-prime/elements/draw/image.rb', line 15

def draw_in(rect)
  return if computed_options[:hidden]
  draw_background_in_context(UIGraphicsGetCurrentContext())
  if computed_options[:draw_in_rect]
    draw_in_context(UIGraphicsGetCurrentContext())
  else
    draw_with_layer
  end
  load_image
end