How do i draw a smooth linie [modified]
-
i want to create a shape Control like that you got here. But his Control can t draw antialiased linies =/ How can i draw smooth linies ?
If I recall theres some settings on the Graphics object that can help you out. Anti-aliasing is more of a quality setting on the Graphics object, than specifically asking for the thing you are drawing to be smoothed.
Mark Churchill Director Dunn & Churchill
-
If I recall theres some settings on the Graphics object that can help you out. Anti-aliasing is more of a quality setting on the Graphics object, than specifically asking for the thing you are drawing to be smoothed.
Mark Churchill Director Dunn & Churchill
Yea i use this already but it looks not really Antialiased =/ the edges of a pie, for example, looks fuzzy but not smoothed I have a Custom Control wich inherits from the Control class and my paint code looks like this
protected override void OnPaint( PaintEventArgs e ) { base.OnPaint( e ); if( ( this.Width <= 0 ) || ( this.Height <= 0 ) ) return; e.Graphics.SmoothingMode = SmoothingMode.AntiAlias; GraphicsPath path = createGraphicPath( Shapes.Pie); this.Region = new Region( path ); Pen pen = new Pen( new SolidBrush( borderColor_ ), borderWidth_ ); pen.DashStyle = borderStyle_; e.Graphics.DrawPath( pen, path ); path.Dispose(); pen.Dispose(); }