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

Element's ID.

Taken from the SVG itself. Isn't automatically generated. Can be empty.

Element transform.

An image rectangle in which it should be fit.

Combination of the x, y, width, height and preserveAspectRatio attributes.

Image data.

Image data kind.

Auto Trait Implementations

impl Send for Image

impl Sync for Image