A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
Antialiasing / SmoothingLearn how to apply antialiasing on shapes using GDI+. Uses SmoothingMode and PixelOffsetMode enumerations. |
On Wednesday, May 26th 2004 at 11:11 AM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 4.2 with 45 votes) |
||
|
Antialiasing = smoothing line edges in computer images: smoothing the jagged edges of diagonal lines in computer-generated images by varying the color or shades of gray at the edges
SmoothingModeThe SmoothingMode property creates the antialiasing that makes the graphic object render smoothly. You can choose from the following enumerations: Default: Specifies the default mode. AntiAlias: Specifies antialiased rendering. HighQuality: Specifies high quality, low speed rendering. HighSpeed: Specifies high speed, low quality rendering. Invalid: Specifies an invalid mode. None: Specifies no antialiasing. HighQuality is actually the same as AntiAlias and HighSpeed is the same as None. In the example code we used SmoothingMode.None and SmoothingMode.AntiAlias to demonstrate. PixelOffsetModePixelOffsetMode, also known as an antialiasing enhancement tries to make the shapes a bit more smooth. As its name implies, PixelOffsetMode offsets pixels to improve the quality. Perhaps the easiest way to understand what PixelOffsetMode does is to analyze the screenshot of the code we have created in this tutorial. In the following screenshot, the first circle (top, left) is created without antialias (SmoothingMode.None), the second (top, right) is created using antialiasing (SmoothingMode.AntiAlias) and the third (lower, left) is created with PixelOffsetMode set to HighQuality (PixelOffsetMode.HighQuality). ![]() You can easily see the difference between the circle created only with SmoothingMode.AntiAlias and the circle created with PixelOffsetMode.HighQuality. The coordinates are decreased by the size of half a pixel. Overall the image created with SmoothingMode.AntiAlias and PixelOffsetMode.HighQuality is a bit better than the one created only with SmoothingMode.AntiAlias, of course with the cost of performance. PixelOffsetMode has the following possible enumerations: Default: Specifies the default mode. Half: Specifies that pixels are offset by -.5 units, both horizontally and vertically, for high speed antialiasing. HighQuality: Specifies high quality, low speed rendering. HighSpeed: Specifies high speed, low quality rendering. Invalid: Specifies an invalid mode. None: Specifies no pixel offset. |
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current Commentsfirst post!
Thanks for the tips! I'm going to use it to make some antialiased graphs.
Cheers
Thanks:)
Excellent, much more better explanation than MSDN.
urgreat !!!
Excellent
Thank you!
asdasdasd
fucking information!!!! please improve your standard..
Sooo, the information on MSDN is short and wrong. The information here is longer, but still complete balls. Did you actually think?
Communicate you for more integrated article. Where further could anyone get that empathic of assemblage in often a total way of utilise ? I talking a presentment tense point, and I am on the spotter for overmuch group.
<a href="http://homedecor7.com/category/bedroom/">bedroom design ideas</a>
Communicate you for more integrated article. Where further could anyone get that empathic of assemblage in often a total way of utilise ? I talking a presentment tense point, and I am on the spotter for overmuch group.
ending in a necropolis add. I was allot dulled at cognition as no acquisition here at obligation. So was searching clad any blogs and came crossways your fact, praise win man I liked what you wrote Inspirational and rale primary.
The classification is depend on the realistic. There whatsoever capitalist that mix the determining with the worsened one. You moldiness trounce it understandably.
Before I read this article, I didn't understand ANYTHING on this subject but after a couple of hours analyzing this, I've come to master it!
thank u for providing me information on List View.
I want to know how i can display data in datalist in Newsletter layout and Thank you so much, this is easy to understand and fun to continue along with. I am a migrating VB.NET/C# Developer looking for an insight into VC .NET. I've found the VC tutorials on many sites to be confusing, and the navigation around the sites to be near impossible to use! Thanks once again.
Once you have recreated the problem and captured these steps, you can save them to a file and send it to your support person, who can then open it up and view
Thank you for another informative blog. Where else could I get that kind of information written in such a perfect means? I have a challenge that I'm simply now working on, and I've been on the glance out for such information.
Communicate you for more integrated article. Where further could anyone get that empathic of assemblage in often a total way of utilise ? I talking a presentment tense point, and I am on the spotter for overmuch group.
Your blog is very informative. I really appreciate your hardwork. Thanks You for such good information. Keep up good work !!
When sampling is performed without removing this part of the signal, it causes undesirable artifacts such as the black-and-white noise
Anti-aliasing used to be a huge deal for Web designers. There were two sides to the issue - those who felt it was extremely important to do on all fonts and GIF images and those who felt that it caused more problems than it solved.
Anti-aliasing used to be a huge deal for Web designers. There were two sides to the issue - those who felt it was extremely important to do on all fonts and GIF images and those who felt that it caused more problems than it solved.
Anti-aliasing used to be a huge deal for Web designers. There were two sides to the issue - those who felt it was extremely important to do on all fonts and GIF images and those who felt that it caused more problems than it solved.
<a href="http://www.allaboutdivorce.net">AllAboutDivorce.com</a>
Very interesting work. <a href="http://www.educationrequirements.net">EducationRequirements.net</a>
Very interesting work.
Votre essai est bon, je suis content pour déterminer ce type d'un site Internet fantastique
Related Tutorials
Related Source Code
C# Job Search