System.Drawing.GeomUtilities.Transform C# (CSharp) Метод

Transform() статический приватный Метод

Transform the specified Rectangle by the matrix that is passed.
static private Transform ( this rectangle, Matrix matrix ) : RectangleF
rectangle this
matrix Matrix Matrix.
Результат RectangleF
        internal static RectangleF Transform(this RectangleF rectangle, Matrix matrix)
        {
            var transform = matrix.transform;
            var x = rectangle.X;
            var y = rectangle.Y;

            rectangle.X = (float)(transform.xx * x + transform.xy * y + transform.x0);
            rectangle.Y = (float)(transform.yx * x + transform.yy * y + transform.y0);

            x = rectangle.Width;
            y = rectangle.Height;

            rectangle.Width = (float)(transform.xx * x + transform.xy * y + transform.x0);
            rectangle.Height = (float)(transform.yx * x + transform.yy * y + transform.y0);

            return new RectangleF (rectangle.Location, rectangle.Size);;
        }