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); }
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); }