XpsDocument.SaveAsImage

SaveAsImage(ImageSaveOptions)

Saves the document to image file.The output directory and the file name will be the same as from input PS file. The file extension will correspond to image format in “options” param. If the document was initialized with a stream that is not FileStream, image file will be saved in the current folder with default file name template.

public void SaveAsImage(ImageSaveOptions options)
ParameterTypeDescription
optionsImageSaveOptionsOptions for saving the document in a bitmap image format.

See Also


SaveAsImage(ImageSaveOptions, string, string)

public void SaveAsImage(ImageSaveOptions options, string outDir, string fileNameTemplate)

See Also