create method
Contents
[
Hide
]create
Creates an image device with the specified rendering options and stream provider.
Returns
The created image device.
def create(self, options, stream_provider):
...
| Parameter | Type | Description |
|---|---|---|
| options | ImageRenderingOptions | The rendering options for the image device. See ImageRenderingOptions. |
| stream_provider | aspose.svg.io.ICreateStreamProvider | The stream provider used to create the image stream. See ICreateStreamProvider. |
create
Creates an image device with the specified rendering options and file path.
Returns
The created image device.
def create(self, options, file):
...
| Parameter | Type | Description |
|---|---|---|
| options | ImageRenderingOptions | The rendering options for the image device. See ImageRenderingOptions. |
| file | str | The file path where the image will be saved. |
create
Creates an image device with the specified rendering options and stream.
Returns
The created image device.
def create(self, options, stream):
...
| Parameter | Type | Description |
|---|---|---|
| options | ImageRenderingOptions | The rendering options for the image device. See ImageRenderingOptions. |
| stream | io.RawIOBase | The stream used to save the image. |
See Also
- module
aspose.svg.rendering.image - class
ICreateStreamProvider - class
IImageDeviceFactory - class
ImageRenderingOptions