Image

@Composable
fun ElementScope<SVGElement>.Image(attrs: SVGImageAttrsScope.() -> Unit)(source)

Type-safe API for creating an SVGImageElement.

For example, to create a Image from (3, 12) to (21, 12):

Svg {
Image {
href("image.png")
x(10.percent)
y(10.percent)
width(80.percent)
height(80.percent)
}
}

See also


@Composable
fun ElementScope<SVGFilterElement>.Image(attrs: SVGFEImageAttrsScope.() -> Unit)(source)