Method: HexaPDF::Content::Processor::GlyphBox#points
- Defined in:
- lib/hexapdf/content/processor.rb
#points ⇒ Object
:call-seq:
glyph_box.points -> [llx, lly, lrx, lry, urx, ury, ulx, uly]
Returns the four corners of the box as an array of coordinates, starting with the lower left corner and going counterclockwise.
145 146 147 |
# File 'lib/hexapdf/content/processor.rb', line 145 def points [@llx, @lly, @lrx, @lry, @ulx + (@lrx - @llx), @uly + (@lry - @lly), @ulx, @uly] end |