Table of Contents

Class TransformBrush

Namespace
Aspose.Imaging.Brushes
Assembly
Aspose.Imaging.dll

A Brush with transform capabilities.

public abstract class TransformBrush : Brush, IDisposable
Inheritance
TransformBrush
Implements
Derived
Inherited Members

Constructors

TransformBrush()

protected TransformBrush()

Properties

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+.

public bool IsTransformChanged { get; }

Property Value

bool

True if transformation was changed; otherwise, false.

Transform

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

public Matrix Transform { get; set; }

Property Value

Matrix

A copy of the Matrix that defines a geometric transform that applies only to fills drawn with this TransformBrush.

WrapMode

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

public WrapMode WrapMode { get; set; }

Property Value

WrapMode

A WrapMode that specifies how fills drawn with this TransformBrush are tiled.

Methods

MultiplyTransform(Matrix)

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

public void MultiplyTransform(Matrix matrix)

Parameters

matrix Matrix

The Matrix by which to multiply the geometric transform.

MultiplyTransform(Matrix, MatrixOrder)

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

public void MultiplyTransform(Matrix matrix, MatrixOrder order)

Parameters

matrix Matrix

The Matrix by which to multiply the geometric transform.

order MatrixOrder

A MatrixOrder that specifies in which order to multiply the two matrices.

ResetTransform()

Resets the Transform property to identity.

public void ResetTransform()

RotateTransform(float)

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

public void RotateTransform(float angle)

Parameters

angle float

The angle of rotation.

RotateTransform(float, MatrixOrder)

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

public void RotateTransform(float angle, MatrixOrder order)

Parameters

angle float

The angle of rotation.

order MatrixOrder

A MatrixOrder that specifies whether to append or prepend the rotation matrix.

ScaleTransform(float, float)

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

public void ScaleTransform(float sx, float sy)

Parameters

sx float

The amount by which to scale the transform in the x-axis direction.

sy float

The amount by which to scale the transform in the y-axis direction.

ScaleTransform(float, float, MatrixOrder)

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

public void ScaleTransform(float sx, float sy, MatrixOrder order)

Parameters

sx float

The amount by which to scale the transform in the x-axis direction.

sy float

The amount by which to scale the transform in the y-axis direction.

order MatrixOrder

A MatrixOrder that specifies whether to append or prepend the scaling matrix.

TranslateTransform(float, float)

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

public void TranslateTransform(float dx, float dy)

Parameters

dx float

The value of the translation in x.

dy float

The value of the translation in y.

TranslateTransform(float, float, MatrixOrder)

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

public void TranslateTransform(float dx, float dy, MatrixOrder order)

Parameters

dx float

The value of the translation in x.

dy float

The value of the translation in y.

order MatrixOrder

The order (prepend or append) in which to apply the translation.