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_bytesdef load_svg_bytes(svg_bytes: Sequence[int]) -> ColorImageLoad 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_sizedef load_svg_bytes_with_size(svg_bytes: Sequence[int], size_hint: SizeHint) -> ColorImageLoad an SVG and rasterize it into an egui image with a scaling parameter.
Requires the "svg" feature.
Errors
On invalid image