public class ImageBrush extends Object
The image brush. The ImageBrush element is used to fill a region with an image. The image is defined in a coordinate space specified by the resolution of the image. The image MUST refer to a JPEG, PNG, TIFF, or JPEG XR image part within the document package.
| Constructor and Description |
|---|
ImageBrush()
Initializes a new instance of the
ImageBrush class. |
| Modifier and Type | Method and Description |
|---|---|
Transform |
getImageBrushTransform()
Gets or sets the image brush transform.
|
String |
getImageSource()
Gets or sets the image source.
|
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.
|
void |
setImageBrushTransform(Transform value)
Gets or sets the image brush transform.
|
void |
setImageSource(String value)
Gets or sets the image source.
|
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.
|
public ImageBrush()
Initializes a new instance of the ImageBrush class.
public final Transform getImageBrushTransform()
Gets or sets the image 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 setImageBrushTransform(Transform value)
Gets or sets the image 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 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 the 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 the 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 dimensions specified are relative to the image’s physical dimensions expressed in units of 1/96". 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 dimensions specified are relative to the image’s physical dimensions expressed in units of 1/96". 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 getImageSource()
Gets or sets the image source. Specifies the URI of an image resource or a combination of the URI of an image resource a color profile resource. The URI MUST refer to parts in the package.
public final void setImageSource(String value)
Gets or sets the image source. Specifies the URI of an image resource or a combination of the URI of an image resource a color profile resource. The URI MUST refer to parts in the package.
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.