System.Drawing.Region.TransformIntPoint C# (CSharp) Method

TransformIntPoint() private static method

Transform the specified Rectangle by the matrix that is passed.
private static TransformIntPoint ( IntPoint &point, Matrix matrix ) : void
point IntPoint
matrix Matrix Matrix.
return void
        private static void TransformIntPoint(ref IntPoint point, Matrix matrix)
        {
            var transform = matrix.transform;
            var x = point.X / scale;
            var y = point.Y / scale;

            point.X = (long)((transform.xx * x + transform.xy * y + transform.x0) * scale);
            point.Y = (long)((transform.yx * x + transform.yy * y + transform.y0) * scale);
        }