XpsDocument.CreateVisualBrush

XpsDocument.CreateVisualBrush method

Creates a new visual brush.

public XpsVisualBrush CreateVisualBrush(XpsContentElement element, RectangleF viewbox, 
    RectangleF viewport)
ParameterTypeDescription
elementXpsContentElementThe XPS element (Canvas, Path or Glyphs) for Visual property od visual brush.
viewboxRectangleFThe position and dimensions of the brush’s source content.
viewportRectangleFThe region in the containing coordinate space of the prime brush tile that is (possibly repeatedly) applied to fill the region to which the brush is applied

Return Value

New visual brush.

See Also