By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,534 Members | 950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,534 IT Pros & Developers. It's quick & easy.

AntiAliasing DrawLine? Possible?

P: n/a
It is possible to draw a line on a control using AA? basically, i need the normal .DrawLine funcion but that support antia aliasing.
is this possible? can somebody tellme how?

Thanks for the help, as usual
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,
It is possible to draw a line on a control using AA? basically, i
need the normal .DrawLine funcion but that support antia aliasing. is
this possible? can somebody tellme how?


Antialiasing is set in the Graphics object of your control, for example with
a Form:

Graphics g = frm.CreateGraphics();
g.SmoothingMode = SmoothingMode.AntiAlias;
g.DrawLine(...);
g.Dispose();

Regards,

--
Frank Eller [.NET MVP]
www.frankeller.de
..NET Developers Group Munich- www.munichdot.net
Nov 20 '05 #2

P: n/a
Sorry, I used C# code in the answer ... :

Dim g as Graphics
g = frm1.CreateGraphics()
g.SmoothingMode = SmoothingMode.AntiAlias
....

Regards,

--
Frank Eller [.NET MVP]
www.frankeller.de
..NET Developers Group Munich- www.munichdot.net
Nov 20 '05 #3

P: n/a
Oh my godness, you are my hero, i never thought it was that easy...
I was already expecting a "use DX9 your lammer" answer, hehe

Thanks a lot!

"Frank Eller [MVP]" <fe@frankeller.de> wrote in message news:#S*************@TK2MSFTNGP11.phx.gbl...
Hi,
It is possible to draw a line on a control using AA? basically, i
need the normal .DrawLine funcion but that support antia aliasing. is
this possible? can somebody tellme how?


Antialiasing is set in the Graphics object of your control, for example with
a Form:

Graphics g = frm.CreateGraphics();
g.SmoothingMode = SmoothingMode.AntiAlias;
g.DrawLine(...);
g.Dispose();

Regards,

--
Frank Eller [.NET MVP]
www.frankeller.de
.NET Developers Group Munich- www.munichdot.net

Nov 20 '05 #4

P: n/a
* "Smoke" <sm***@netgate.com.uy> scripsit:
It is possible to draw a line on a control using AA? basically, i need the normal .DrawLine funcion but that support antia aliasing.
is this possible? can somebody tellme how?


Set the 'Graphics' object's 'SmootingMode' to an appropriate value
before drawing the line.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.