What does Res Scale actually do?

45 views
Skip to first unread message

Toby K

unread,
Oct 4, 2022, 1:35:02 PM10/4/22
to skia-discuss
I've read the Res Scale documentation in the API docs
eg
And I cant find anything when I search Res Scale on skia.org

I'm looking for a deeper understanding. 
What does Res Scale mean?
How does it work? 

One time I had an issue with conic curves and GetFillPath that fixed when Res Scale was above 2.25. But it was a sudden jump, didn't seem to operate like a linear scale modifier.

Brian Osman

unread,
Oct 4, 2022, 1:48:45 PM10/4/22
to skia-d...@googlegroups.com
It does control the level of subdivision for curves, but those changes may not be linear. (Essentially, things like stroking and path linearization try to hit a goal of being within one-pixel everywhere. Increasing the resScale will make that be true, if the path is drawn/linearized at that particular scale factor.) Internally, it's generally just determined by the larger scale factor (X or Y) from the matrix when doing a drawing operation.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/ff5d54de-18ce-4ed4-a9cc-ac9a4d684043n%40googlegroups.com.

Toby K

unread,
Oct 4, 2022, 2:10:26 PM10/4/22
to skia-d...@googlegroups.com
Ok! Thankyou for the quick response

You received this message because you are subscribed to a topic in the Google Groups "skia-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/skia-discuss/Jr__HN9Y4vU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to skia-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skia-discuss/CAMcBjo4%3DMe3xkWwh0WRF8ymPDvcX4JTfzkWX7ui0HfhJ3V711Q%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages