SvgImage.SetTransform(Matrix) Method
In This Article
Applies a transformation matrix to this vector image.
Namespace: DevExpress.Utils.Svg
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
transform | Matrix | The transformation matrix to apply. |
#Returns
Type | Description |
---|---|
Svg |
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