System.Windows.Forms.Util.FlipDrawing C# (CSharp) Method

FlipDrawing() public static method

public static FlipDrawing ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void
		public static void FlipDrawing (Rectangle rect)
		{
			var ctx = NSGraphicsContext.CurrentContext.GraphicsPort;
			CGContextTranslateCTM (ctx.Handle, (float)rect.X, (float)rect.Height);
			CGContextScaleCTM (ctx.Handle, 1.0f, -1.0f);
		}
	}