Struct usvg::Image [−][src]
pub struct Image { pub id: String, pub transform: Transform, pub view_box: ViewBox, pub data: ImageData, pub format: ImageFormat, }
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.
format: ImageFormat
Image data kind.