save method
Contents
[
Hide
]save
Saves the image data to the underlying stream.
def save(self):
    ...
save
Saves the object’s data to the specified stream.
def save(self, stream):
    ...
| Parameter | Type | Description | 
|---|---|---|
| stream | io.RawIOBase | The stream to save the object’s data to. | 
save
Saves the object’s data to the specified file location.
def save(self, file_path):
    ...
| Parameter | Type | Description | 
|---|---|---|
| file_path | str | The file path to save the object’s data to. | 
save
Saves the object’s data to the specified file location in the specified file format according to save options.
def save(self, file_path, options):
    ...
| Parameter | Type | Description | 
|---|---|---|
| file_path | str | The file path. | 
| options | ImageOptionsBase | The options. | 
save
Saves the image’s data to the specified stream in the specified file format according to save options.
def save(self, stream, options_base):
    ...
| Parameter | Type | Description | 
|---|---|---|
| stream | io.RawIOBase | The stream to save the image’s data to. | 
| options_base | ImageOptionsBase | The save options. | 
Exceptions
| Exception | Description | 
|---|---|
| ArgumentNullException | optionsBase | 
| ArgumentException | Cannot save to the specified format as it is not supported at the moment.;optionsBase | 
ImageSaveException | Image export failed. | 
save
Saves the object’s data to the specified file location.
def save(self, file_path, over_write):
    ...
| Parameter | Type | Description | 
|---|---|---|
| file_path | str | The file path to save the object’s data to. | 
| over_write | bool | if set to true over write the file contents, otherwise append will occur. | 
See Also
- module 
aspose.cad.fileformats.dgn - class 
DgnImage - class 
ImageSaveException