Method: Roi#rectangle=
- Defined in:
- lib/roi/roi.rb
#rectangle=(rectangle) ⇒ Object
Public: Sets Roi rectangle.
rectangle - Hash with keys :x, :y, :width, and :height from which to set Roi rectangle.
Returns nothing.
65 66 67 68 69 70 |
# File 'lib/roi/roi.rb', line 65 def rectangle=(rectangle) @x = rectangle[:x] @y = rectangle[:y] @width = rectangle[:width] @height = rectangle[:height] end |