Transform.toAffine

Converts a GskTransform to 2D affine transformation factors.

@self must be a 2D transformation. If you are not sure, use gsk_transform_get_category() >= %GSK_TRANSFORM_CATEGORY_2D_AFFINE to check.

class Transform
void
toAffine
(
out float outScaleX
,
out float outScaleY
,
out float outDx
,
out float outDy
)

Parameters

outScaleX float

return location for the scale factor in the x direction

outScaleY float

return location for the scale factor in the y direction

outDx float

return location for the translation in the x direction

outDy float

return location for the translation in the y direction

Meta