public override void DrawRect(RectangleF dirtyRect) { base.DrawRect(dirtyRect); var context = NSGraphicsContext.CurrentContext.GraphicsPort; var wrapper = new GraphicsContextWrapper(context, Bounds.Width, Bounds.Height, GenericControlHelper.ToBasicRect(dirtyRect)); _control.Render(wrapper); }
public override void DrawRect(RectangleF dirtyRect) { //Console.WriteLine("WaveFormView - DrawRect - dirtyRect: {0}", dirtyRect); //var stopwatch = new Stopwatch(); //stopwatch.Start(); var context = NSGraphicsContext.CurrentContext.GraphicsPort; var wrapper = new GraphicsContextWrapper(context, Bounds.Width, Bounds.Height, GenericControlHelper.ToBasicRect(dirtyRect)); _control.Render(wrapper); //stopwatch.Stop(); //Console.WriteLine("WaveFormView - DrawRect - Render time: {0}", stopwatch.Elapsed); }
public override void DrawRect(RectangleF dirtyRect) { //Console.WriteLine("SongGridView - DrawRect - dirtyRect: {0}", dirtyRect); base.DrawRect(dirtyRect); var context = NSGraphicsContext.CurrentContext.GraphicsPort; var wrapper = new GraphicsContextWrapper(context, Bounds.Width, Bounds.Height, GenericControlHelper.ToBasicRect(dirtyRect)); _control.Render(wrapper); }