Click or drag to resize

MatrixTransformRectangle Method

Transforms the rectangle with the current matrix.

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
public static RectangleF TransformRectangle(
	this IMatrix matrix,
	RectangleF rect


Type: Eto.DrawingIMatrix
Matrix to transform each point of the rectangle.
Type: Eto.DrawingRectangleF
Rectangle to transform.

Return Value

Type: RectangleF
A new rectangle that encompasses the translated rect.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMatrix. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
This returns a rectangle that encompasses the specified rect after it is translated. When rotating, this means that the new rectangle may be larger in size to encompass the translated rectangle.
See Also