Transform.toAffine

Converts a gsk.transform.Transform to 2D affine transformation factors.

To recreate an equivalent transform from the factors returned by this function, use

gsk_transform_scale (gsk_transform_translate (NULL, &GRAPHENE_POINT_T (dx, dy)), sx, sy)

self must be a 2D affine transformation. If you are not sure, use

gsk.transform.Transform.getCategory >= gsk.types.TransformCategory._2dAffine

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