usvg 0.48.1

An SVG simplification library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2025 the Resvg Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT

pub(crate) fn skrifa_to_tsp_transform(t: skrifa::color::Transform) -> tiny_skia_path::Transform {
    tiny_skia_path::Transform::from_row(t.xx, t.yx, t.xy, t.yy, t.dx, t.dy)
}

pub(crate) fn tsp_to_skrifa_transform(t: tiny_skia_path::Transform) -> skrifa::color::Transform {
    skrifa::color::Transform {
        xx: t.sx,
        yx: t.ky,
        xy: t.kx,
        yy: t.sy,
        dx: t.tx,
        dy: t.ty,
    }
}