create method

create

Creates an image device with the specified rendering options and stream provider.

Returns

The created image device.

def create(self, options, stream_provider):
    ...
ParameterTypeDescription
optionsImageRenderingOptionsThe rendering options for the image device. See ImageRenderingOptions.
stream_provideraspose.svg.io.ICreateStreamProviderThe 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):
    ...
ParameterTypeDescription
optionsImageRenderingOptionsThe rendering options for the image device. See ImageRenderingOptions.
filestrThe 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):
    ...
ParameterTypeDescription
optionsImageRenderingOptionsThe rendering options for the image device. See ImageRenderingOptions.
streamio.RawIOBaseThe stream used to save the image.

See Also