Images

External images can be embedded in your document with the Image class.

import pathlib
# Just a black rectangle here, but this can be anything.
# These paths are relative to the docs build dir, if you want to try this out
# yourself you'll need to provide your own images
file_path = pathlib.Path("..") / "tests" / "resources" / "pixmap_image.png"
Image(ORIGIN, None, file_path)
/_static/rendered_examples/CDY5DAI5HWAUCSCPSTBL7Q5BEMWQ275U.png

Neoscore can import most common bitmap image types, in addition to vector-graphics SVG images which can scale without artifacts.

import pathlib
file_path = pathlib.Path("..") / "tests" / "resources" / "svg_image.svg"
Image(ORIGIN, None, file_path, scale=1.2)
/_static/rendered_examples/VOIOVMNM4CLIBPNS6U7JCBTEMX6CF2LA.png