Class TransformBuilder
Namespace: Aspose.Svg.Builder
Assembly: Aspose.SVG.dll (25.8.0)
Builder class for creating SVG transform attribute strings.
[ComVisible(true)]
public class TransformBuilderInheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TransformBuilder()
public TransformBuilder()Methods
Build()
Builds the transform attribute string.
public string Build()Returns
The transform attribute string.
Matrix(double, double, double, double, double, double)
Adds a matrix transform to the builder.
public TransformBuilder Matrix(double a, double b, double c, double d, double e, double f)Parameters
a double
The a component of the matrix.
b double
The b component of the matrix.
c double
The c component of the matrix.
d double
The d component of the matrix.
e double
The e component of the matrix.
f double
The f component of the matrix.
Returns
The current TransformBuilder instance.
Rotate(double, double, double)
Adds a rotate transform to the builder.
public TransformBuilder Rotate(double angle, double cx = 0, double cy = 0)Parameters
angle double
The rotation angle in degrees.
cx double
The x-coordinate of the rotation center. Defaults to 0.
cy double
The y-coordinate of the rotation center. Defaults to 0.
Returns
The current TransformBuilder instance.
Scale(double, double)
Adds a scale transform to the builder.
public TransformBuilder Scale(double sx, double sy = 0)Parameters
sx double
The scaling factor along the x-axis.
sy double
The scaling factor along the y-axis. Defaults to 0.
Returns
The current TransformBuilder instance.
SkewX(double)
Adds a skewX transform to the builder.
public TransformBuilder SkewX(double angle)Parameters
angle double
The skew angle along the x-axis in degrees.
Returns
The current TransformBuilder instance.
SkewY(double)
Adds a skewY transform to the builder.
public TransformBuilder SkewY(double angle)Parameters
angle double
The skew angle along the y-axis in degrees.
Returns
The current TransformBuilder instance.
Translate(double, double)
Adds a translate transform to the builder.
public TransformBuilder Translate(double tx, double ty = 0)Parameters
tx double
The translation along the x-axis.
ty double
The translation along the y-axis. Defaults to 0.
Returns
The current TransformBuilder instance.