Skip to main content

SvgImage.SetTransform(Matrix) Method

Applies a transformation matrix to this vector image.

Namespace: DevExpress.Utils.Svg

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data

Declaration

public SvgImage SetTransform(
    Matrix transform
)

Parameters

Name Type Description
transform Matrix

The transformation matrix to apply.

Returns

Type Description
SvgImage

The modified image.

Remarks

The code below illustrates how to rotate an SvgImage inside a PictureEdit control 30 degrees clockwise.

using System.Drawing.Drawing2D;

var matrix = new Matrix();
matrix.RotateAt((float)30, new PointF(20, 20));
pictureEdit1.SvgImage = pictureEdit1.SvgImage.SetTransform(matrix);
See Also