Class TransformBrush
Namespace: Aspose.Imaging.Brushes
Assembly: Aspose.Imaging.dll (25.2.0)
A Aspose.Imaging.Brush with transform capabilities.
[JsonObject(MemberSerialization.OptIn)]
public abstract class TransformBrush : Brush, IDisposable
Inheritance
object ← DisposableObject ← Brush ← TransformBrush
Derived
LinearGradientBrushBase, PathGradientBrushBase, TextureBrush
Implements
Inherited Members
Brush.DeepClone(), Brush.Equals(object), Brush.GetHashCode(), Brush.Equals(Brush), Brush.Opacity, DisposableObject.Dispose(), DisposableObject.ReleaseManagedResources(), DisposableObject.ReleaseUnmanagedResources(), DisposableObject.VerifyNotDisposed(), DisposableObject.Disposed, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
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
Transform
Gets or sets a copy Aspose.Imaging.Matrix that defines a local geometric transform for this Aspose.Imaging.Brushes.TransformBrush.
public Matrix Transform { get; set; }
Property Value
WrapMode
Gets or sets a Aspose.Imaging.WrapMode enumeration that indicates the wrap mode for this Aspose.Imaging.Brushes.TransformBrush.
public WrapMode WrapMode { get; set; }
Property Value
Methods
MultiplyTransform(Matrix)
Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this Aspose.Imaging.Brushes.LinearGradientBrush by the specified Aspose.Imaging.Matrix by prepending the specified Aspose.Imaging.Matrix.
public void MultiplyTransform(Matrix matrix)
Parameters
matrix
Matrix
The Aspose.Imaging.Matrix by which to multiply the geometric transform.
MultiplyTransform(Matrix, MatrixOrder)
Multiplies the Aspose.Imaging.Matrix that represents the local geometric transform of this Aspose.Imaging.Brushes.LinearGradientBrush by the specified Aspose.Imaging.Matrix in the specified order.
public void MultiplyTransform(Matrix matrix, MatrixOrder order)
Parameters
matrix
Matrix
The Aspose.Imaging.Matrix by which to multiply the geometric transform.
order
MatrixOrder
A Aspose.Imaging.MatrixOrder that specifies in which order to multiply the two matrices.
ResetTransform()
Resets the Aspose.Imaging.Brushes.TransformBrush.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 Aspose.Imaging.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 Aspose.Imaging.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.