Example #1
0
        public static RRect fromRectXY(Rect rect, float radiusX, float radiusY)
        {
            var radius = Radius.elliptical(radiusX, radiusY);

            return(new RRect(rect.left, rect.top, rect.right, rect.bottom,
                             radius, radius, radius, radius));
        }
Example #2
0
        public static RRect fromLTRBXY(
            float left, float top, float right, float bottom,
            float radiusX, float radiusY)
        {
            var radius = Radius.elliptical(radiusX, radiusY);

            return(new RRect(left, top, right, bottom,
                             radius, radius, radius, radius));
        }
Example #3
0
        public static RRect fromLTRBXY(
            double left, double top, double right, double bottom,
            double radiusX, double radiusY)
        {
            var radius = Radius.elliptical(radiusX, radiusY);

            return(new RRect(left, top, right, bottom,
                             radius, radius, radius, radius));
        }