- class neoscore.interface.image_interface.ImageInterface
Interface for images, including both pixmaps and SVGs.
Supported image extensions/formats include: BMP, GIF, JPG, JPEG, PNG, PBM, PGM, PPM, XBM, XPM, and SVG.
Scaling respects the image’s aspect ratio, and is performed using bilinear filtering.
- file_path: pathlib.Path
- scale: float = 1
- rotation: float = 0
Rotation angle in degrees
- z_index: int = 0
Z-index controlling draw order.
- __init__(pos: Point, file_path: Path, scale: float = 1, rotation: float = 0, z_index: int = 0) None
Render the object to the scene.
This is typically done by constructing a QGraphicsItem subclass and adding it to the scene with