rounded-corners Arşivleri - Selim Özdem
16 Kasım 2018, Cuma
Home / Tag Archives: rounded-corners

Tag Archives: rounded-corners

c# rounded corners – köşeleri yuvarlatılmış diktörtgen çizimi

private void DrawRoundedRectangle(Graphics gfx, Rectangle Bounds, int CornerRadius, Pen DrawPen, Color FillColor) { int strokeOffset = Convert.ToInt32(Math.Ceiling(DrawPen.Width)); Bounds = Rectangle.Inflate(Bounds, -strokeOffset, -strokeOffset); DrawPen.EndCap = DrawPen.StartCap = LineCap.Round; GraphicsPath gfxPath = new GraphicsPath(); gfxPath.AddArc(Bounds.X, Bounds.Y, CornerRadius, CornerRadius, 180, 90); gfxPath.AddArc(Bounds.X + Bounds.Width - CornerRadius, Bounds.Y, CornerRadius, CornerRadius, 270, 90); gfxPath.AddArc(Bounds.X + …

Devamı »