0
Я рисую закругленный прямоугольник. Проблема - углы не острые. Есть ли решение этой проблемы?Core Графический округлый угол не резкий
Вот мой рисунок кода (Xamarin)
var thickness = (nfloat)Math.Min (Math.Min (_renderer.View.Thickness.Left, _renderer.View.Thickness.Right), Math.Max (_renderer.View.Thickness.Top, _renderer.View.Thickness.Bottom));
var path = UIBezierPath.FromRoundedRect (new CGRect(this.Bounds.X + thickness/2, this.Bounds.Y + thickness/2, this.Bounds.Width - thickness, this.Bounds.Height - thickness), (nfloat)_renderer.View.CornerRadius);
context.SetShouldAntialias (true);
context.SetStrokeColor (_renderer.View.Color.ToCGColor());
context.SetFillColor (_renderer.View.BackgroundColor.ToCGColor());
path.LineWidth = thickness;
path.Fill();
path.Stroke();
Вы пытались запустить это на реальном устройстве против iOS-симулятора? Вы также должны посмотреть на этот ответ: http://stackoverflow.com/a/2181479/4984832 – SushiHangover