SetReplacementImage

CustomImageSavingArgs.SetReplacementImage method

Provides a replacement image to use instead of the original image from the source document. The stream must contain the complete replacement image data (e.g. PNG or JPEG bytes). When set, the library writes this data to the output instead of the original image.

public void SetReplacementImage(Stream imageStream)
Parameter Type Description
imageStream Stream A readable stream containing the replacement image data.

Exceptions

exception condition
ArgumentNullException Thrown when imageStream is null.

See Also