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.
| Constructor and 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. |
| Modifier and Type | Method and Description |
|---|---|
Object |
deepClone()
Creates an exact copy of this
TextureBrush object. |
Image |
getImage()
Gets the Image object associated with this TextureBrush object.
|
Matrix |
getTransform()
Gets a copy of the Matrix object that defines a local geometric transformation for the image
associated with this TextureBrush object.
|
int |
getWrapMode()
Gets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.
|
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. |
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. |
void |
resetTransform()
Resets the Transform property of this
TextureBrush object to identity. |
void |
rotateTransform(float angle)
Rotates the local geometric transformation of this
TextureBrush object by the specified amount. |
void |
rotateTransform(float angle,
int order)
Rotates the local geometric transformation of this
TextureBrush object by the specified amount
in the specified order. |
void |
scaleTransform(float sx,
float sy)
Scales the local geometric transformation of this
TextureBrush object by the specified amounts. |
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. |
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.
|
void |
setWrapMode(int value)
Sets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.
|
void |
translateTransform(float dx,
float dy)
Translates the local geometric transformation of this
TextureBrush object by the specified dimensions. |
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. |
public TextureBrush(Image bitmap)
Initializes a new instance of the TextureBrush class that uses the specified image.
bitmap - The Image(TextureBrush.getImage()) object with which this TextureBrush object fills interiors.com.aspose.ms.System.ArgumentNullException - The bitmap is null.public TextureBrush(Image image, int wrapMode)
Initializes a new instance of the TextureBrush class that uses the specified image and wrap mode.
image - The image.wrapMode - A WrapMode(TextureBrush.getWrapMode()/TextureBrush.setWrapMode(int)) enumeration that specifies how this TextureBrush object is tiled.com.aspose.ms.System.ArgumentNullException - The image is null.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.
image - The image.wrapMode - A WrapMode(TextureBrush.getWrapMode()/TextureBrush.setWrapMode(int)) enumeration that specifies how this TextureBrush object is tiled.dstRect - A RectangleF structure that represents the bounding rectangle for this TextureBrush object.com.aspose.ms.System.ArgumentNullException - The image is null.public TextureBrush(Image image, RectangleF dstRect)
Initializes a new instance of the TextureBrush class that uses the specified image, and bounding rectangle.
image - The Image(TextureBrush.getImage()) object with which this TextureBrush object fills interiors.dstRect - A RectangleF structure that represents the bounding rectangle for this TextureBrush object.com.aspose.ms.System.ArgumentNullException - The image is null.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.
image - The Image object with which this TextureBrush object fills interiors.dstRect - A RectangleF structure that represents the bounding rectangle for this TextureBrush object.imageAttr - An ImageAttributes object that contains additional information about the image
used by this TextureBrush object.com.aspose.ms.System.ArgumentNullException - The image is null.public Image getImage()
Gets the Image object associated with this TextureBrush object.
public Matrix getTransform()
Gets a copy of the Matrix object that defines a local geometric transformation for the image associated with this TextureBrush object.
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.
value - a copy of the Matrix object that defines a local geometric transformation for the image
associated with this TextureBrush object.public int getWrapMode()
Gets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.
public void setWrapMode(int value)
Sets a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.
value - a WrapMode enumeration that indicates the wrap mode for this TextureBrush object.public Object deepClone()
Creates an exact copy of this TextureBrush object.
deepClone in class BrushTextureBrush object this method creates, cast as an Object object.public void resetTransform()
Resets the Transform property of this TextureBrush object to identity.
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.
matrix - The Matrix object by which to multiply the geometric transformation.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.
matrix - The Matrix object by which to multiply the geometric transformation.order - A MatrixOrder enumeration that specifies the order in which to multiply the two matrices.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.
dx - The dimension by which to translate the transformation in the x direction.dy - The dimension by which to translate the transformation in the y direction.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.
dx - The dimension by which to translate the transformation in the x direction.dy - The dimension by which to translate the transformation in the y direction.order - The order (prepend or append) in which to apply the translation.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.
sx - The amount by which to scale the transformation in the x direction.sy - The amount by which to scale the transformation in the y direction.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.
sx - The amount by which to scale the transformation in the x direction.sy - The amount by which to scale the transformation in the y direction.order - A MatrixOrder enumeration that specifies whether to append or prepend the scaling matrix.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.
angle - The angle of rotation.public void rotateTransform(float angle,
int order)
Rotates the local geometric transformation of this TextureBrush object by the specified amount
in the specified order.
angle - The angle of rotation.order - A MatrixOrder enumeration that specifies whether to append or prepend the rotation matrix.Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.