TextureBrush

Inheritance: java.lang.Object, com.aspose.psd.DisposableObject, com.aspose.psd.Brush, com.aspose.psd.brushes.TransformBrush

public final class TextureBrush extends TransformBrush

Each property of the Aspose.Imaging.Brushes.TextureBrush class is a Aspose.Imaging.Brush object that uses an image to fill the interior of a shape. This class cannot be inherited.

Constructors

ConstructorDescription
TextureBrush(Image image)Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image.
TextureBrush(Image image, int wrapMode)Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and wrap mode.
TextureBrush(Image image, int wrapMode, RectangleF destinationRectangle)Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.
TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.
TextureBrush(Image image, RectangleF destinationRectangle)Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle.
TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes.
TextureBrush(Image image, Rectangle destinationRectangle)Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle.
TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes.

Methods

MethodDescription
close()Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7.
deepClone()Creates a new deep clone of the current Brush .
dispose()Disposes the current instance.
equals(Object arg0)
getClass()
getDisposed()Gets a value indicating whether this instance is disposed.
getImage()Gets the com.aspose.psd.Image object associated with this com.aspose.psd.brushes.TextureBrush object.
getImageAttributes()Gets the ImageAttributes associated with this TextureBrush .
getImageRectangle()Gets the Rectangle associated with this TextureBrush .
getOpacity()Gets the brush opacity.
getTransform()Gets or sets a copy Aspose.Imaging.Matrix that defines a local geometric transform for this TransformBrush .
getWrapMode()Gets or sets a Aspose.Imaging.WrapMode enumeration that indicates the wrap mode for this TransformBrush .
hashCode()
isTransformChanged()Gets a value indicating whether transformations were changed in some way.
multiplyTransform(Matrix matrix)Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Aspose.Imaging.Matrix by prepending the specified Aspose.Imaging.Matrix .
multiplyTransform(Matrix matrix, int order)Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Aspose.Imaging.Matrix in the specified order.
notify()
notifyAll()
resetTransform()Resets the TransformBrush.Transform property to identity.
rotateTransform(float angle)Rotates the local geometric transform by the specified amount.
rotateTransform(float angle, int order)Rotates the local geometric transform by the specified amount in the specified order.
scaleTransform(float sx, float sy)Scales the local geometric transform by the specified amounts.
scaleTransform(float sx, float sy, int order)Scales the local geometric transform by the specified amounts in the specified order.
setOpacity(float value)Sets the brush opacity.
setTransform(Matrix value)Gets or sets a copy Aspose.Imaging.Matrix that defines a local geometric transform for this TransformBrush .
setWrapMode(int value)Gets or sets a Aspose.Imaging.WrapMode enumeration that indicates the wrap mode for this TransformBrush .
toString()
translateTransform(float dx, float dy)Translates the local geometric transform by the specified dimensions.
translateTransform(float dx, float dy, int order)Translates the local geometric transform by the specified dimensions in the specified order.
wait()
wait(long arg0)
wait(long arg0, int arg1)

TextureBrush(Image image)

public TextureBrush(Image image)

Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image.

Parameters:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.

TextureBrush(Image image, int wrapMode)

public TextureBrush(Image image, int wrapMode)

Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and wrap mode.

Parameters:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
wrapModeintA Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.

TextureBrush(Image image, int wrapMode, RectangleF destinationRectangle)

public TextureBrush(Image image, int wrapMode, RectangleF destinationRectangle)

Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.

Parameters:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
wrapModeintA Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.
destinationRectangleRectangleFA Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.

TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)

public TextureBrush(Image image, int wrapMode, Rectangle destinationRectangle)

Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, wrap mode, and bounding rectangle.

Parameters:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
wrapModeintA Aspose.Imaging.WrapMode enumeration that specifies how this Aspose.Imaging.Brushes.TextureBrush object is tiled.
destinationRectangleRectangleA Aspose.Imaging.Rectangle structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.

TextureBrush(Image image, RectangleF destinationRectangle)

public TextureBrush(Image image, RectangleF destinationRectangle)

Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle.

Parameters:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
destinationRectangleRectangleFA Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.

TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)

public TextureBrush(Image image, RectangleF destinationRectangle, ImageAttributes imageAttributes)

Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes.

Parameters:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
destinationRectangleRectangleFA Aspose.Imaging.RectangleF structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.
imageAttributesImageAttributesAn com.aspose.psd.ImageAttributes object that contains additional information about the image used by this Aspose.Imaging.Brushes.TextureBrush object.

TextureBrush(Image image, Rectangle destinationRectangle)

public TextureBrush(Image image, Rectangle destinationRectangle)

Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image and bounding rectangle.

Parameters:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
destinationRectangleRectangleA Aspose.Imaging.Rectangle structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.

TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)

public TextureBrush(Image image, Rectangle destinationRectangle, ImageAttributes imageAttributes)

Initializes a new instance of the Aspose.Imaging.Brushes.TextureBrush class that uses the specified image, bounding rectangle, and image attributes.

Parameters:

ParameterTypeDescription
imageImageThe Aspose.Imaging.Image object with which this Aspose.Imaging.Brushes.TextureBrush object fills interiors.
destinationRectangleRectangleA Aspose.Imaging.Rectangle structure that represents the bounding rectangle for this Aspose.Imaging.Brushes.TextureBrush object.
imageAttributesImageAttributesAn com.aspose.psd.ImageAttributes object that contains additional information about the image used by this Aspose.Imaging.Brushes.TextureBrush object.

close()

public void close()

Implements the Closable interface and can be used in the try-with-resources statement since JDK 1.7. This method simply call dispose method.

deepClone()

public Brush deepClone()

Creates a new deep clone of the current Brush .

Returns: Brush - A new Brush which is the deep clone of this Brush instance.

dispose()

public final void dispose()

Disposes the current instance.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDisposed()

public final boolean getDisposed()

Gets a value indicating whether this instance is disposed.

Returns: boolean - true if disposed; otherwise, false .

getImage()

public Image getImage()

Gets the com.aspose.psd.Image object associated with this com.aspose.psd.brushes.TextureBrush object.

Value: An com.aspose.psd.Image object that represents the image with which this com.aspose.psd.brushes.TextureBrush object fills shapes.

Returns: Image

getImageAttributes()

public ImageAttributes getImageAttributes()

Gets the ImageAttributes associated with this TextureBrush .

Value: The ImageAttributes .

Returns: ImageAttributes

getImageRectangle()

public RectangleF getImageRectangle()

Gets the Rectangle associated with this TextureBrush .

Value: The Rectangle .

Returns: RectangleF

getOpacity()

public float getOpacity()

Gets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque.

Returns: float - The brush opacity value.

getTransform()

public Matrix getTransform()

Gets or sets a copy Aspose.Imaging.Matrix that defines a local geometric transform for this TransformBrush .

Returns: Matrix - A copy of the Aspose.Imaging.Matrix that defines a geometric transform that applies only to fills drawn with this TransformBrush .

getWrapMode()

public int getWrapMode()

Gets or sets a Aspose.Imaging.WrapMode enumeration that indicates the wrap mode for this TransformBrush .

Returns: int - A Aspose.Imaging.WrapMode that specifies how fills drawn with this TransformBrush are tiled.

hashCode()

public native int hashCode()

Returns: int

isTransformChanged()

public boolean isTransformChanged()

Gets a value indicating whether transformations were changed in some way. For example setting the transformation matrix or calling any of the methods altering the transformation matrix. The property is introduced for backward compatibility with GDI+.

Value: True if transformation was changed; otherwise, false .

Returns: boolean

multiplyTransform(Matrix matrix)

public void multiplyTransform(Matrix matrix)

Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Aspose.Imaging.Matrix by prepending the specified Aspose.Imaging.Matrix .

Parameters:

ParameterTypeDescription
matrixMatrixThe Aspose.Imaging.Matrix by which to multiply the geometric transform.

multiplyTransform(Matrix matrix, int order)

public void multiplyTransform(Matrix matrix, int order)

Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Aspose.Imaging.Matrix in the specified order.

Parameters:

ParameterTypeDescription
matrixMatrixThe Aspose.Imaging.Matrix by which to multiply the geometric transform.
orderintA Aspose.Imaging.MatrixOrder that specifies in which order to multiply the two matrices.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

resetTransform()

public void resetTransform()

Resets the TransformBrush.Transform property to identity.

rotateTransform(float angle)

public void rotateTransform(float angle)

Rotates the local geometric transform by the specified amount. This method prepends the rotation to the transform.

Parameters:

ParameterTypeDescription
anglefloatThe angle of rotation.

rotateTransform(float angle, int order)

public void rotateTransform(float angle, int order)

Rotates the local geometric transform by the specified amount in the specified order.

Parameters:

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

scaleTransform(float sx, float sy)

public void scaleTransform(float sx, float sy)

Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform.

Parameters:

ParameterTypeDescription
sxfloatThe amount by which to scale the transform in the x-axis direction.
syfloatThe amount by which to scale the transform in the y-axis direction.

scaleTransform(float sx, float sy, int order)

public void scaleTransform(float sx, float sy, int order)

Scales the local geometric transform by the specified amounts in the specified order.

Parameters:

ParameterTypeDescription
sxfloatThe amount by which to scale the transform in the x-axis direction.
syfloatThe amount by which to scale the transform in the y-axis direction.
orderintA Aspose.Imaging.MatrixOrder that specifies whether to append or prepend the scaling matrix.

setOpacity(float value)

public void setOpacity(float value)

Sets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque.

Parameters:

ParameterTypeDescription
valuefloatThe brush opacity value.

setTransform(Matrix value)

public void setTransform(Matrix value)

Gets or sets a copy Aspose.Imaging.Matrix that defines a local geometric transform for this TransformBrush .

Parameters:

ParameterTypeDescription
valueMatrix

setWrapMode(int value)

public void setWrapMode(int value)

Gets or sets a Aspose.Imaging.WrapMode enumeration that indicates the wrap mode for this TransformBrush .

Parameters:

ParameterTypeDescription
valueint

toString()

public String toString()

Returns: java.lang.String

translateTransform(float dx, float dy)

public void translateTransform(float dx, float dy)

Translates the local geometric transform by the specified dimensions. This method prepends the translation to the transform.

Parameters:

ParameterTypeDescription
dxfloatThe value of the translation in x.
dyfloatThe value of the translation in y.

translateTransform(float dx, float dy, int order)

public void translateTransform(float dx, float dy, int order)

Translates the local geometric transform by the specified dimensions in the specified order.

Parameters:

ParameterTypeDescription
dxfloatThe value of the translation in x.
dyfloatThe value of the translation in y.
orderintThe order (prepend or append) in which to apply the translation.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int