Пример #1
0
        public override /*interface Colorer*/ SKRect MeasureText(string text, SKPaint paint)
        {
            if (string.IsNullOrEmpty(text))
            {
                return(new SKRect(0, 0, 0, 0));
            }
            CGRect rect = CG.MeasureText(text, paint);

            return(new SKRect((float)rect.Left, (float)rect.Top, (float)rect.Right, (float)rect.Bottom));
        }