SVGImageElementBuilder class

SVGImageElementBuilder class

Builder class for constructing an SVG ‘image’ element. This element is used to embed images within SVG graphics. It provides methods to set various attributes specific to the ‘image’ element and to add additional configurations like clip paths, masks, styles, and scripts.

The SVGImageElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGImageElementBuilder

Methods

MethodDescription
href_base_64_from_fileSets the ‘href’ attribute of the SVG ‘image’ element using a base64 encoded image file.
href_base_64_from_fileSets the ‘href’ attribute of the SVG ‘image’ element using a base64 encoded image file with a specified MIME type.
build
build
hrefSets the ‘href’ attribute of the SVG ‘image’ element, specifying the URL of the image to be embedded.
href_base_64_from_bytesSets the ‘href’ attribute of the SVG ‘image’ element using base64 encoded bytes of an image.
build_elementBuilds and returns an SVGElement instance based on the current configuration of the builder.
attributeSets or updates an attribute on an SVG element.

See Also