S or /

SourceModule image

Classes§

Functions§

load_svg_bytes

Load an SVG and rasterize it into an egui image.

load_svg_bytes_with_size

Load an SVG and rasterize it into an egui image with a scaling parameter.

SourceFunction load_svg_bytes§

from egui import load_svg_bytes
def load_svg_bytes(svg_bytes: Sequence[int]) -> ColorImage

Load an SVG and rasterize it into an egui image.

Requires the "svg" feature.

Errors

On invalid image

SourceFunction load_svg_bytes_with_size§

from egui import load_svg_bytes_with_size
def load_svg_bytes_with_size(svg_bytes: Sequence[int], size_hint: SizeHint) -> ColorImage

Load an SVG and rasterize it into an egui image with a scaling parameter.

Requires the "svg" feature.

Errors

On invalid image

Constants§

Re-exports§