Thread: Anti aliasing

  1. #1
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203

    Talking Anti aliasing

    Does windows provide Anti aliasing for gdi drawn lines, curves (other than fonts)?
    If so, how can I enable it?
    MSDN gave results all relating to Direct X.

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    With gdi, no.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    That means with something else I can?
    If so what is it?
    (Thinking about starting to learn opengl but, but for the trivial app I'm intending I would rather have something simpler.)
    P.S. Its yet another desktop clock (analog looking type with meedles) tha I am thinking of doing.
    Last edited by arjunajay; 08-14-2006 at 08:33 PM.

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    The only anti-aliasing in Windows is for fonts. AFAIK there are not any API functions that deal with AA. Obviously they are there since the True-Type fonts use it, but it has not been exposed to us lowly third party peasants yet.

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Look into GDI+
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  6. #6
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    I dont' think I have gdi+. Atleast I have'nt seen header files and the like. It it available for MFC only? cause I use mingw gcc.
    Yeah, I saw a Function which sets the antialiasing (SetSmoothingMode()).
    Last edited by arjunajay; 08-15-2006 at 10:37 AM.

  7. #7
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    GDI+ has nothing to do with MFC. Have a look here:

    http://msdn.microsoft.com/library/de...us/GDIPlus.asp

    With a little searching you should be able to get started.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  8. #8
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    As I said, I don't have the header files.
    But I'll look for some updates.
    Thanks for the help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Best Anti Virus Software...?
    By gardenair in forum Tech Board
    Replies: 4
    Last Post: 05-01-2003, 11:17 PM
  2. Looking for good anti spam software for Outlook 2002...
    By gicio in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-31-2002, 01:34 PM
  3. anti virus algorithm
    By sadat in forum C Programming
    Replies: 3
    Last Post: 06-03-2002, 09:58 AM
  4. help me in developing a good anti virus program
    By sadat in forum C++ Programming
    Replies: 3
    Last Post: 04-04-2002, 02:09 PM
  5. anti aliasing
    By muttski in forum Game Programming
    Replies: 2
    Last Post: 03-16-2002, 06:55 AM