protected override void OnDraw(Canvas canvas)
        {
            // TODO do we need to call base.Draw()?
            //base.OnDraw(canvas);

            //IGraphics gr = new XFGraphics.Android.AndroidGraphics (canvas);
            TGraphics gr = _func_gr(canvas);

            DateTime t1 = DateTime.Now;

            _dp.Draw(gr);
            DateTime t2      = DateTime.Now;
            TimeSpan elapsed = t2 - t1;

            global::Android.Util.Log.Info("elapsed: ", elapsed.TotalMilliseconds.ToString());
        }
Exemplo n.º 2
0
        public override void Draw(RectangleF unused)
        {
            // TODO do we need to call base.Draw()?

                        #if not
            IGraphics gr = new XFGraphics.CoreGraphics.CoreGraphicsGraphics(
                UIGraphics.GetCurrentContext(), true, Bounds.Height);
                        #else
            TGraphics gr = _func_gr(this);
                        #endif

            DateTime t1 = DateTime.Now;
            _dp.Draw(gr);
            DateTime t2      = DateTime.Now;
            TimeSpan elapsed = t2 - t1;
            Console.WriteLine("elapsed: {0}", elapsed.TotalMilliseconds);
        }