Exemple #1
0
        public static Telerik.Windows.Documents.Fixed.Model.Graphics.QuadraticBezierSegment ConvertQuadraticBezierSegment(QuadraticBezierSegment quadraticBezierSegment)
        {
            var pdfQuadraticBezierSegment = new Telerik.Windows.Documents.Fixed.Model.Graphics.QuadraticBezierSegment();

            pdfQuadraticBezierSegment.Point1 = quadraticBezierSegment.Point1;
            pdfQuadraticBezierSegment.Point2 = quadraticBezierSegment.Point2;

            return(pdfQuadraticBezierSegment);
        }
Exemple #2
0
        public static IEnumerable <Telerik.Windows.Documents.Fixed.Model.Graphics.QuadraticBezierSegment> ConvertPolyQuadraticBezierSegment(PolyQuadraticBezierSegment polyQuadraticBezierSegment)
        {
            var points = polyQuadraticBezierSegment.Points;

            for (int index = 1; index < points.Count; index += 2)
            {
                var pdfQuadraticBezierSegment = new Telerik.Windows.Documents.Fixed.Model.Graphics.QuadraticBezierSegment();
                pdfQuadraticBezierSegment.Point1 = points[index - 1];
                pdfQuadraticBezierSegment.Point2 = points[index];

                yield return(pdfQuadraticBezierSegment);
            }
        }
        public static IEnumerable<Telerik.Windows.Documents.Fixed.Model.Graphics.QuadraticBezierSegment> ConvertPolyQuadraticBezierSegment(PolyQuadraticBezierSegment polyQuadraticBezierSegment)
        {
            var points = polyQuadraticBezierSegment.Points;

            for (int index = 1; index < points.Count; index += 2)
            {
                var pdfQuadraticBezierSegment = new Telerik.Windows.Documents.Fixed.Model.Graphics.QuadraticBezierSegment();
                pdfQuadraticBezierSegment.Point1 = points[index - 1];
                pdfQuadraticBezierSegment.Point2 = points[index];

                yield return pdfQuadraticBezierSegment;
            }
        }
        public static Telerik.Windows.Documents.Fixed.Model.Graphics.QuadraticBezierSegment ConvertQuadraticBezierSegment(QuadraticBezierSegment quadraticBezierSegment)
        {
            var pdfQuadraticBezierSegment = new Telerik.Windows.Documents.Fixed.Model.Graphics.QuadraticBezierSegment();
            pdfQuadraticBezierSegment.Point1 = quadraticBezierSegment.Point1;
            pdfQuadraticBezierSegment.Point2 = quadraticBezierSegment.Point2;

            return pdfQuadraticBezierSegment;
        }