Solved

Anti Alias GDI calls

Posted on 2001-06-22
3
2,331 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

895 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

16 Experts available now in Live!

Get 1:1 Help Now