PreviewImage
Overview
PreviewImage is a class in Aspose.Font FOSS for Python.
PreviewImage.write_to(path) saves the generated PNG or SVG preview to the specified filesystem location and returns the Path object.
This class provides 1 method for working with PreviewImage objects in Python programs.
Available methods include: write_to.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Properties: data, filename, media_type.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
filename | str | Read | Gets the filename. |
media_type | str | Read | Gets the media type. |
data | bytes | Read | Gets the data. |
Methods
| Signature | Description |
|---|---|
write_to(path: str | Path) → Path | Saves the generated PNG or SVG preview to the specified filesystem location and returns the Path object |