public class VisualBrush extends Object
The visual brush. The VisualBrush element is used to fill a region with a drawing. The drawing can be specified as either a VisualBrush.Visual property element or as a resource reference. Drawing content can include exactly one Canvas, Path, or Glyphs element and that element’s child and descendant elements.
| Constructor and Description |
|---|
VisualBrush()
Initializes a new instance of the
VisualBrush class. |
| Modifier and Type | Method and Description |
|---|---|
double |
getOpacity()
Gets or sets the opacity.
|
String |
getTileMode()
Gets or sets the tile mode.
|
String |
getTransform()
Gets or sets the transform.
|
String |
getViewbox()
Gets or sets the view box.
|
String |
getViewboxUnits()
Gets or sets the view box units.
|
String |
getViewport()
Gets or sets the viewport.
|
String |
getViewportUnits()
Gets or sets the viewport units.
|
String |
getVisual()
Gets or sets the visual.
|
Transform |
getVisualBrushTransform()
Gets or sets the visual brush transform.
|
Visual |
getVisualBrushVisual()
Gets or sets the visual brush visual.
|
void |
setOpacity(double value)
Gets or sets the opacity.
|
void |
setTileMode(String value)
Gets or sets the tile mode.
|
void |
setTransform(String value)
Gets or sets the transform.
|
void |
setViewbox(String value)
Gets or sets the view box.
|
void |
setViewboxUnits(String value)
Gets or sets the view box units.
|
void |
setViewport(String value)
Gets or sets the viewport.
|
void |
setViewportUnits(String value)
Gets or sets the viewport units.
|
void |
setVisual(String value)
Gets or sets the visual.
|
void |
setVisualBrushTransform(Transform value)
Gets or sets the visual brush transform.
|
void |
setVisualBrushVisual(Visual value)
Gets or sets the visual brush visual.
|
public VisualBrush()
Initializes a new instance of the VisualBrush class.
public final Transform getVisualBrushTransform()
Gets or sets the visual brush transform. Describes the matrix transformation applied to the coordinate space of the brush. The Transform property is concatenated with the current effective render transform to yield an effective render transform local to the brush. The viewport for the brush is transformed using the local effective render transform.
public final void setVisualBrushTransform(Transform value)
Gets or sets the visual brush transform. Describes the matrix transformation applied to the coordinate space of the brush. The Transform property is concatenated with the current effective render transform to yield an effective render transform local to the brush. The viewport for the brush is transformed using the local effective render transform.
public final Visual getVisualBrushVisual()
Gets or sets the visual brush visual. Specifies a Path element, Glyphs element, or Canvas element used to draw the brush’s source contents.
public final void setVisualBrushVisual(Visual value)
Gets or sets the visual brush visual. Specifies a Path element, Glyphs element, or Canvas element used to draw the brush’s source contents.
public final double getOpacity()
Gets or sets the opacity. Defines the uniform transparency of the brush fill. Values range from 0 (fully transparent) to 1 (fully opaque), inclusive.Values outside of this range are invalid.
public final void setOpacity(double value)
Gets or sets the opacity. Defines the uniform transparency of the brush fill. Values range from 0 (fully transparent) to 1 (fully opaque), inclusive.Values outside of this range are invalid.
public final String getTransform()
Gets or sets the transform. Describes the matrix transformation applied to the coordinate space of the brush. The Transform property is concatenated with the current effective render transform to yield an effective render transform local to the brush. The viewport for the brush is transformed using that local effective render transform.
public final void setTransform(String value)
Gets or sets the transform. Describes the matrix transformation applied to the coordinate space of the brush. The Transform property is concatenated with the current effective render transform to yield an effective render transform local to the brush. The viewport for the brush is transformed using that local effective render transform.
public final String getViewbox()
Gets or sets the view box. Specifies the position and dimensions of the brush's source content. Specifies four comma separated real numbers (x, y, Width, Height), where width and height are non-negative. The view box defines the default coordinate system for the element specified in the VisualBrush.Visual property element. The corners of the view box are mapped to the corners of the viewport, thereby providing the default clipping and transform for the brush’s source content.
public final void setViewbox(String value)
Gets or sets the view box. Specifies the position and dimensions of the brush's source content. Specifies four comma separated real numbers (x, y, Width, Height), where width and height are non-negative. The view box defines the default coordinate system for the element specified in the VisualBrush.Visual property element. The corners of the view box are mapped to the corners of the viewport, thereby providing the default clipping and transform for the brush’s source content.
public final String getViewport()
Gets or sets the viewport. Specifies the 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. Specifies four comma-separated real numbers(x, y, Width, Height), where width and height are non-negative. The alignment of the brush pattern is controlled by adjusting the x and y values.
public final void setViewport(String value)
Gets or sets the viewport. Specifies the 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. Specifies four comma-separated real numbers(x, y, Width, Height), where width and height are non-negative. The alignment of the brush pattern is controlled by adjusting the x and y values.
public final String getTileMode()
Gets or sets the tile mode. Specifies how contents will be tiled in the filled region. Valid values are None, Tile, FlipX, FlipY, and FlipXY.
public final void setTileMode(String value)
Gets or sets the tile mode. Specifies how contents will be tiled in the filled region. Valid values are None, Tile, FlipX, FlipY, and FlipXY.
public final String getViewboxUnits()
Gets or sets the view box units. Specifies the relationship of the view box coordinates to the containing coordinate space.
public final void setViewboxUnits(String value)
Gets or sets the view box units. Specifies the relationship of the view box coordinates to the containing coordinate space.
public final String getViewportUnits()
Gets or sets the viewport units. Specifies the relationship of the viewport coordinates to the containing coordinate space.
public final void setViewportUnits(String value)
Gets or sets the viewport units. Specifies the relationship of the viewport coordinates to the containing coordinate space.
public final String getVisual()
Gets or sets the visual. Specifies resource reference to a Path, Glyphs, or Canvas element defined in a resource dictionary and used to draw the brush’s source content.
public final void setVisual(String value)
Gets or sets the visual. Specifies resource reference to a Path, Glyphs, or Canvas element defined in a resource dictionary and used to draw the brush’s source content.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.