• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2420
  • Last Modified:

Anti Alias GDI calls

Does anyone know how to anti alias GDI calls (LineTo Arc Etc)

small circles look terrible.


Stephen J Lake
1 Solution
As I understand, you don't like GDI names and want make your own?
It is vry easy : make someting like next
#define MyLineTo LineTo
#define MyArc Arc
Anti-aliasing is a technique that is used by graphics programs to soften the edges of fonts and lines so that they appear more rounded. They do that by making the pixels near the edges not exactly the background-color, but something between the pen-color and the background color. The setting "Smooth edges of screen fonts" in Windows does exactly that.

I don't know how it is done, but the article "Five Centuries of UI Design" in MSDN Backgrounders clearly explains what is done behind the curtain. But you better read "Preparing Your Visual Basic 6.0 Applications for the Upgrade to Visual Basic.NET" and decide to use the betas now available. It explains that GDI+ supports Anti-aliasing!

The only thing I found about drawing was in the DDK: the function DIB_ExtTextOut makes it possible to draw text anti-aliased when you use the ETO_LEVEL_MODE function. But this is DDK, not SDK.
DirectX may, and OpenGL will allow you to draw anti-aliased. AFAIK the standard windows GDI does nothing in that area (it is a bit more computation intensive, but just a bit).
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now