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

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
bitmapImageThe 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:

ParameterTypeDescription
imageImageThe image.
wrapModeintA 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:

ParameterTypeDescription
imageImageThe image.
wrapModeintA WrapMode(.getWrapMode/.setWrapMode(int)) enumeration that specifies how this TextureBrush object is tiled.
dstRectRectangleFA 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:

ParameterTypeDescription
imageImageThe Image(.getImage) object with which this TextureBrush object fills interiors.
dstRectRectangleFA 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:

ParameterTypeDescription
imageImageThe Image object with which this TextureBrush object fills interiors.
dstRectRectangleFA RectangleF structure that represents the bounding rectangle for this TextureBrush object.
imageAttrImageAttributesAn 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:

ParameterTypeDescription
valueMatrixa 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:

ParameterTypeDescription
valueinta 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:

ParameterTypeDescription
matrixMatrixThe 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:

ParameterTypeDescription
matrixMatrixThe Matrix object by which to multiply the geometric transformation.
orderintA 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:

ParameterTypeDescription
dxfloatThe dimension by which to translate the transformation in the x direction.
dyfloatThe 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:

ParameterTypeDescription
dxfloatThe dimension by which to translate the transformation in the x direction.
dyfloatThe dimension by which to translate the transformation in the y direction.
orderintThe 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:

ParameterTypeDescription
sxfloatThe amount by which to scale the transformation in the x direction.
syfloatThe 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:

ParameterTypeDescription
sxfloatThe amount by which to scale the transformation in the x direction.
syfloatThe amount by which to scale the transformation in the y direction.
orderintA 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:

ParameterTypeDescription
anglefloatThe 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:

ParameterTypeDescription
anglefloatThe angle of rotation.
orderintA MatrixOrder enumeration that specifies whether to append or prepend the rotation matrix.