transform_pixel_rectangle
Description:
First transforms the rect
using this, then calculates the bounding box of the transformed
rectangle.
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 [method@Pango.Matrix.transform_rectangle] on original rectangle in Pango units and convert to pixels afterward using [func@extents_to_pixels]'s first argument.
Parameters:
this |
a `PangoMatrix` |
rect |
in/out bounding box in device units |