SvgImage.SetTransform(Matrix) Method
Applies a transformation matrix to this vector image.
Namespace: DevExpress.Utils.Svg
Assembly: DevExpress.Data.v24.1.dll
NuGet Package: DevExpress.Data
Declaration
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