lib/quicktime/track.rb in rmov-0.1.4 vs lib/quicktime/track.rb in rmov-0.1.5

- old
+ new

@@ -24,7 +24,17 @@ # Returns true/false depending on if track is a text track. def text? media_type == :text end + + # Returns the bounding width of this track in number of pixels. + def width + bounds[:right] - bounds[:left] + end + + # Returns the bounding height of this track in number of pixels. + def height + bounds[:bottom] - bounds[:top] + end end end