XpsDocument.CreateImage

CreateImage(string)

Creates a new image resource out of image file located at the imagePath.

public XpsImage CreateImage(string imagePath)
ParameterTypeDescription
imagePathStringThe path to the image to take as a resource.

Return Value

New image resource.

See Also


CreateImage(Stream)

Creates a new image resource out of stream.

public XpsImage CreateImage(Stream stream)
ParameterTypeDescription
streamStreamThe stream containing the image to take as a resource.

Return Value

New image resource.

See Also