Name
playout:GetPixelExtents -- get pixel extents of layout
Synopsis
ink_rect, logical_rect = playout:GetPixelExtents()
Function
Computes the logical and ink extents of the layout in device units. Both return values are tables that have the x, y, width, and height fields initialized.

This function just calls playout:GetExtents() followed by two pango.ExtentsToPixels() calls, rounding ink_rect and logical_rect such that the rounded rectangles fully contain the unrounded one (that is, passes them as first argument to pango.ExtentsToPixels().

Inputs
none

Results
ink_rect
extents of the layout as drawn
logical_rect
logical extents of the layout

Show TOC