mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
![]() Current paint::bounds() returns the coordinates under the raw status, the values are not quite useful if the paint object has the transformed children. Thus, we extends the feature and give an additional parameter "transformed" to return the coordinates values after transformation by user demands. This is also necessary for tvg format, since we need the exact view size of the scene information. The previous api is deprecated and we introduce a new api to replace it. @APIs: + Result Paint::bounds(float* x, float* y, float* w, float* h, bool transformed) const noexcept; - Result Paint::bounds(float* x, float* y, float* w, float* h) const noexcept; @Issues: https://github.com/Samsung/thorvg/issues/746 |
||
---|---|---|
.. | ||
meson.build | ||
thorvg.h |