public final class XpsVisualBrush extends XpsTilingBrush
Class incapsulating VisualBrush property element features. This element is used to fill a region with a drawing.
Modifier and Type | Method and Description |
---|---|
XpsVisualBrush |
deepClone()
Clones this visual brush.
|
XpsElement |
getVisual()
Returns a Path, Glyphs, or Canvas element used to draw the brush’s source content.
|
void |
setVisual(XpsCanvas canvas)
Sets
canvas as Visual element of visual brush. |
void |
setVisual(XpsGlyphs glyphs)
Sets
glyphs as Visual element of visual brush. |
void |
setVisual(XpsPath path)
Sets
path as Visual element of visual brush. |
getTileMode, getViewbox, getViewport, setTileMode, setViewbox, setViewport
getTransform, setTransform
getOpacity, setOpacity
get, iterator, size
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public XpsElement getVisual()
Returns a Path, Glyphs, or Canvas element used to draw the brush’s source content.
public void setVisual(XpsCanvas canvas)
Sets canvas
as Visual element of visual brush.
canvas
- Canvas element.public void setVisual(XpsPath path)
Sets path
as Visual element of visual brush.
path
- Path element.public void setVisual(XpsGlyphs glyphs)
Sets glyphs
as Visual element of visual brush.
glyphs
- Glyphs element.public XpsVisualBrush deepClone()
Clones this visual brush.