TextureBrush
Inheritance: java.lang.Object, com.aspose.drawing.Brush
public final class TextureBrush extends Brush
Each property of the TextureBrush class is a Brush object that uses an image to fill the interior of a shape. This class cannot be inherited.
Constructors
Constructor | Description |
---|---|
TextureBrush(Image bitmap) | Initializes a new instance of the TextureBrush class that uses the specified image. |
TextureBrush(Image image, int wrapMode) | Initializes a new instance of the TextureBrush class that uses the specified image and wrap mode. |
TextureBrush(Image image, int wrapMode, RectangleF dstRect) | Initializes a new instance of the TextureBrush class that uses the specified image, wrap mode, and bounding rectangle. |
TextureBrush(Image image, RectangleF dstRect) | Initializes a new instance of the TextureBrush class that uses the specified image, and bounding rectangle. |
TextureBrush(Image image, RectangleF dstRect, ImageAttributes imageAttr) | Initializes a new instance of the TextureBrush class that uses the specified image, bounding rectangle, and image attributes. |
Methods
Method | Description |
---|---|
getImage() | Gets the Image object associated with this TextureBrush object. |
getTransform() | Gets a copy of the Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object. |
setTransform(Matrix value) | Sets a copy of the Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object. |
getWrapMode() | Gets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object. |
setWrapMode(int value) | Sets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object. |
deepClone() | Creates an exact copy of this TextureBrush object. |
resetTransform() | Resets the Transform property of this TextureBrush object to identity. |
multiplyTransform(Matrix matrix) | Multiplies the Matrix object that represents the local geometric transformation of this TextureBrush object by the specified Matrix object by prepending the specified Matrix object. |
multiplyTransform(Matrix matrix, int order) | Multiplies the Matrix object that represents the local geometric transformation of this TextureBrush object by the specified Matrix object in the specified order. |
translateTransform(float dx, float dy) | Translates the local geometric transformation of this TextureBrush object by the specified dimensions. |
translateTransform(float dx, float dy, int order) | Translates the local geometric transformation of this TextureBrush object by the specified dimensions in the specified order. |
scaleTransform(float sx, float sy) | Scales the local geometric transformation of this TextureBrush object by the specified amounts. |
scaleTransform(float sx, float sy, int order) | Scales the local geometric transformation of this TextureBrush object by the specified amounts in the specified order. |
rotateTransform(float angle) | Rotates the local geometric transformation of this TextureBrush object by the specified amount. |
rotateTransform(float angle, int order) | Rotates the local geometric transformation of this TextureBrush object by the specified amount in the specified order. |
TextureBrush(Image bitmap)
public TextureBrush(Image bitmap)
Initializes a new instance of the TextureBrush class that uses the specified image.
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | Image | The Image (.getImage) object with which this TextureBrush object fills interiors. |
TextureBrush(Image image, int wrapMode)
public TextureBrush(Image image, int wrapMode)
Initializes a new instance of the TextureBrush class that uses the specified image and wrap mode.
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image. |
wrapMode | int | A WrapMode (.getWrapMode/.setWrapMode(int)) enumeration that specifies how this TextureBrush object is tiled. |
TextureBrush(Image image, int wrapMode, RectangleF dstRect)
public TextureBrush(Image image, int wrapMode, RectangleF dstRect)
Initializes a new instance of the TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The image. |
wrapMode | int | A WrapMode (.getWrapMode/.setWrapMode(int)) enumeration that specifies how this TextureBrush object is tiled. |
dstRect | RectangleF | A RectangleF structure that represents the bounding rectangle for this TextureBrush object. |
TextureBrush(Image image, RectangleF dstRect)
public TextureBrush(Image image, RectangleF dstRect)
Initializes a new instance of the TextureBrush class that uses the specified image, and bounding rectangle.
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The Image (.getImage) object with which this TextureBrush object fills interiors. |
dstRect | RectangleF | A RectangleF structure that represents the bounding rectangle for this TextureBrush object. |
TextureBrush(Image image, RectangleF dstRect, ImageAttributes imageAttr)
public TextureBrush(Image image, RectangleF dstRect, ImageAttributes imageAttr)
Initializes a new instance of the TextureBrush class that uses the specified image, bounding rectangle, and image attributes.
Parameters:
Parameter | Type | Description |
---|---|---|
image | Image | The Image object with which this TextureBrush object fills interiors. |
dstRect | RectangleF | A RectangleF structure that represents the bounding rectangle for this TextureBrush object. |
imageAttr | ImageAttributes | An ImageAttributes object that contains additional information about the image used by this TextureBrush object. |
getImage()
public Image getImage()
Gets the Image object associated with this TextureBrush object.
Returns: Image - the Image object associated with this TextureBrush object.
getTransform()
public Matrix getTransform()
Gets a copy of the Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object.
Returns: Matrix - a copy of the Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object.
setTransform(Matrix value)
public void setTransform(Matrix value)
Sets a copy of the Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Matrix | a copy of the Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object. |
getWrapMode()
public int getWrapMode()
Gets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.
Returns: int - a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.
setWrapMode(int value)
public void setWrapMode(int value)
Sets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a WrapMode enumeration that indicates the wrap mode for this TextureBrush object. |
deepClone()
public Object deepClone()
Creates an exact copy of this TextureBrush object.
Returns: java.lang.Object - The TextureBrush object this method creates, cast as an Object object.
resetTransform()
public void resetTransform()
Resets the Transform property of this TextureBrush object to identity.
multiplyTransform(Matrix matrix)
public void multiplyTransform(Matrix matrix)
Multiplies the Matrix object that represents the local geometric transformation of this TextureBrush object by the specified Matrix object by prepending the specified Matrix object.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The Matrix object by which to multiply the geometric transformation. |
multiplyTransform(Matrix matrix, int order)
public void multiplyTransform(Matrix matrix, int order)
Multiplies the Matrix object that represents the local geometric transformation of this TextureBrush object by the specified Matrix object in the specified order.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The Matrix object by which to multiply the geometric transformation. |
order | int | A MatrixOrder enumeration that specifies the order in which to multiply the two matrices. |
translateTransform(float dx, float dy)
public void translateTransform(float dx, float dy)
Translates the local geometric transformation of this TextureBrush object by the specified dimensions. This method prepends the translation to the transformation.
Parameters:
Parameter | Type | Description |
---|---|---|
dx | float | The dimension by which to translate the transformation in the x direction. |
dy | float | The dimension by which to translate the transformation in the y direction. |
translateTransform(float dx, float dy, int order)
public void translateTransform(float dx, float dy, int order)
Translates the local geometric transformation of this TextureBrush object by the specified dimensions in the specified order.
Parameters:
Parameter | Type | Description |
---|---|---|
dx | float | The dimension by which to translate the transformation in the x direction. |
dy | float | The dimension by which to translate the transformation in the y direction. |
order | int | The order (prepend or append) in which to apply the translation. |
scaleTransform(float sx, float sy)
public void scaleTransform(float sx, float sy)
Scales the local geometric transformation of this TextureBrush object by the specified amounts. This method prepends the scaling matrix to the transformation.
Parameters:
Parameter | Type | Description |
---|---|---|
sx | float | The amount by which to scale the transformation in the x direction. |
sy | float | The amount by which to scale the transformation in the y direction. |
scaleTransform(float sx, float sy, int order)
public void scaleTransform(float sx, float sy, int order)
Scales the local geometric transformation of this TextureBrush object by the specified amounts in the specified order.
Parameters:
Parameter | Type | Description |
---|---|---|
sx | float | The amount by which to scale the transformation in the x direction. |
sy | float | The amount by which to scale the transformation in the y direction. |
order | int | A MatrixOrder enumeration that specifies whether to append or prepend the scaling matrix. |
rotateTransform(float angle)
public void rotateTransform(float angle)
Rotates the local geometric transformation of this TextureBrush object by the specified amount. This method prepends the rotation to the transformation.
Parameters:
Parameter | Type | Description |
---|---|---|
angle | float | The angle of rotation. |
rotateTransform(float angle, int order)
public void rotateTransform(float angle, int order)
Rotates the local geometric transformation of this TextureBrush object by the specified amount in the specified order.
Parameters:
Parameter | Type | Description |
---|---|---|
angle | float | The angle of rotation. |
order | int | A MatrixOrder enumeration that specifies whether to append or prepend the rotation matrix. |