Exemplo n.º 1
0
        private PointF CalculateCenterPoint(ISvgBoundable boundable, PointF origin)
        {
            var deviceCenterX          = origin.X + CenterX.ToDeviceValue(boundable);
            var deviceCenterY          = origin.Y + CenterY.ToDeviceValue(boundable, true);
            var transformedCenterPoint = TransformPoint(new PointF(deviceCenterX, deviceCenterY));

            return(transformedCenterPoint);
        }
Exemplo n.º 2
0
        private PointF CalculateCenterPoint(SvgRenderer renderer, PointF origin)
        {
            var deviceCenterX          = origin.X + CenterX.ToDeviceValue(renderer, UnitRenderingType.HorizontalOffset, this);
            var deviceCenterY          = origin.Y + CenterY.ToDeviceValue(renderer, UnitRenderingType.VerticalOffset, this);
            var transformedCenterPoint = TransformPoint(new PointF(deviceCenterX, deviceCenterY));

            return(transformedCenterPoint);
        }