replace_image method

replace_image

Replaces image data. The new image’s data.When newImageData parameter is null.

def replace_image(self, new_image_data):
    ...
ParameterTypeDescription
new_image_databytes

replace_image

Replaces image data. Attention: when Image is metafile - it will be rasterized due to restrictions of GDI+. Use ReplaceImage(byte[]) instead The new image.When newImage parameter is null.

def replace_image(self, new_image):
    ...
ParameterTypeDescription
new_imageaspose.pydrawing.Image

replace_image

Replaces image data. Attention: when Image is metafile - it will be rasterized. Use ReplaceImage(byte[]) instead The new image.When newImage parameter is null.

def replace_image(self, new_image):
    ...
ParameterTypeDescription
new_imageIImage

replace_image

Replaces image data. The new IPPImage.When newImage parameter is null.

def replace_image(self, new_image):
    ...
ParameterTypeDescription
new_imageIPPImage

See Also