image_stream property

ImageSavingArgs.image_stream property

Allows to specify the stream where the image will be saved to.

@property
def image_stream(self) -> io.BytesIO:
    ...

@image_stream.setter
def image_stream(self, value: io.BytesIO):
    ...

Remarks

This property allows you to save images to streams instead of files during HTML.

The default value is None. When this property is None, the image will be saved to a file specified in the ImageSavingArgs.image_file_name property.

Using IImageSavingCallback you cannot substitute one image with another. It is intended only for control over location where to save images.

See Also