PgMatrix.matrixTransformPixelRectangle

First transforms the rect using matrix, then calculates the bounding box of the transformed rectangle. The rectangle should be in device units (pixels). This function is useful for example when you want to draw a rotated PangoLayout to an image buffer, and want to know how large the image should be and how much you should shift the layout when rendering. For better accuracy, you should use pango_matrix_transform_rectangle() on original rectangle in Pango units and convert to pixels afterward using pango_extents_to_pixels()'s first argument. Since 1.16

class PgMatrix
void
matrixTransformPixelRectangle

Parameters

rect PangoRectangle*

in/out bounding box in device units, or NULL. inout[allow-none]

Meta