Struct usvg::tree::Image
[−]
[src]
pub struct Image { pub id: String, pub transform: Transform, pub view_box: ViewBox, pub data: ImageData, }
A raster image element.
image
element in the SVG.
Fields
id: String
Element's ID.
Taken from the SVG itself. Isn't automatically generated. Can be empty.
transform: Transform
Element transform.
view_box: ViewBox
An image rectangle in which it should be fit.
Combination of the x
, y
, width
, height
and preserveAspectRatio
attributes.
data: ImageData
Image data.