Function usvg::utils::view_box_to_transform_with_clip [−][src]
pub fn view_box_to_transform_with_clip(
view_box: &ViewBox,
img_size: ScreenSize
) -> (Transform, Option<Rect>)
Expand description
Converts viewBox
to Transform
with an optional clip rectangle.
Unlike view_box_to_transform
, returns an optional clip rectangle
that should be applied before rendering the image.