Solved

Anti Alias GDI calls

Posted on 2001-06-22
3
2,326 Views
Last Modified: 2012-08-13
Does anyone know how to anti alias GDI calls (LineTo Arc Etc)

small circles look terrible.


Regards


Stephen J Lake
0
Comment
Question by:lakes
3 Comments
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 6218733
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
...
0
 
LVL 39

Expert Comment

by:abel
ID: 6219312
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.
0
 
LVL 7

Accepted Solution

by:
KangaRoo earned 200 total points
ID: 6220240
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).
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now