DocumentUtils.CreateImage

DocumentUtils.CreateImage method

Creates a rectangular path filled with an image.

public XpsPath CreateImage(string fileName, RectangleF imageBox, 
    ImageMode mode = ImageMode.FitToBox)
ParameterTypeDescription
fileNameStringThe name of the image file.
imageBoxRectangleFThe image box to fill with the image.
modeImageModeImage fit mode.

Return Value

The XPS path.

See Also