Beispiel #1
0
        private void HandlePaintGLSurfaceTool(object sender, SKPaintGLSurfaceEventArgs e)
        {
            // See https://github.com/mono/SkiaSharp/issues/920
            ((SKGLControl)sender).MakeCurrent();
            var bg = TransparencyKey.ToSKColor();

            e.Surface.Canvas.Clear(bg);
            phiddle.DrawTool(e.Surface.Canvas);
        }
Beispiel #2
0
        private void HandlePaintGLSurfaceZoom(object sender, SKPaintGLSurfaceEventArgs e)
        {
            // See https://github.com/mono/SkiaSharp/issues/920
            var control = (SKGLControl)sender;

            control.BringToFront();
            control.MakeCurrent();
            var bg = TransparencyKey.ToSKColor();

            e.Surface.Canvas.Clear(bg);
            phiddle.DrawZoomWindow(e.Surface.Canvas);
        }