How to understand the parameters of gtk_snapshot_scale?

Without relevant experience, I can’t understand it.

I played around with some parameters, trying to understand what the parameters mean.

For the meaning of factor_x, I can see the law from the results.
But I can’t understand factor_y.

gtk_snapshot_scale( snapshot, 0.8, 0.8 )

Well, the meaning of the parameters is as I thought.
Just why the offset happens, I don’t understand

gtk_snapshot_scale( child_snapshot, 1.5, 1.8 );

I get it! Both x and y are scaled, so the image is offset

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.