Class: PDFium::BoundingBox
- Inherits:
-
Object
- Object
- PDFium::BoundingBox
- Defined in:
- lib/pdfium/bounding_box.rb
Overview
The size of an object. Used with both Page and Image
Instance Attribute Summary collapse
-
#bottom ⇒ Object
readonly
dimensions for the BoundingBox.
-
#left ⇒ Object
readonly
dimensions for the BoundingBox.
-
#right ⇒ Object
readonly
dimensions for the BoundingBox.
-
#top ⇒ Object
readonly
dimensions for the BoundingBox.
Instance Method Summary collapse
-
#initialize(l, r, t, b) ⇒ BoundingBox
constructor
Left, Right, Top, Bottom.
Constructor Details
#initialize(l, r, t, b) ⇒ BoundingBox
Left, Right, Top, Bottom
10 11 12 |
# File 'lib/pdfium/bounding_box.rb', line 10 def initialize(l,r,t,b) @left=l; @right=r; @top=t; @bottom=b end |
Instance Attribute Details
#bottom ⇒ Object (readonly)
dimensions for the BoundingBox. Fixnum given in terms of points
7 8 9 |
# File 'lib/pdfium/bounding_box.rb', line 7 def bottom @bottom end |
#left ⇒ Object (readonly)
dimensions for the BoundingBox. Fixnum given in terms of points
7 8 9 |
# File 'lib/pdfium/bounding_box.rb', line 7 def left @left end |
#right ⇒ Object (readonly)
dimensions for the BoundingBox. Fixnum given in terms of points
7 8 9 |
# File 'lib/pdfium/bounding_box.rb', line 7 def right @right end |
#top ⇒ Object (readonly)
dimensions for the BoundingBox. Fixnum given in terms of points
7 8 9 |
# File 'lib/pdfium/bounding_box.rb', line 7 def top @top end |