Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to draw an antialiased line with Win32 GDI

1,059 views
Skip to first unread message

Dale M. Nurden

unread,
May 28, 2001, 7:26:21 PM5/28/01
to
How can one draw an antialiased line with Win32 GDI?

-Dale
--
Dale M. Nurden __|__ http://users.iafrica.com/d/da/dalen
dalen-rcis.co.za | Highway Radio, 101.5FM
dalen-iafrica.com | Christian Community Radio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Author of TClockEx, the FREE taskbar clock enhancer.
Spam proofing in effect: Please use '@' in place of '-'.

Rui Lopes

unread,
May 29, 2001, 9:27:06 AM5/29/01
to
win32 GDI does not draw anti-antialiased lines for you, you have to
draw then by hand.... the new GDI+ can draw antialiased
rectangles/line/text.... to an intro in GDI+ goto
http://www.codeproject.com/net/startinggdiplus.asp.


Rui Lopes


da...@not.my.real.email.address (Dale M. Nurden) wrote in message news:<3b12abed...@dbn-news.iafrica.com>...

Tim Robinson

unread,
Jun 1, 2001, 8:37:50 PM6/1/01
to
"Dan Amodeo" <ze...@wam.umd.edu> wrote in message
news:3B183509...@wam.umd.edu...
> Rui Lopes wrote:
>
> > [for] an intro [to] GDI+ goto
> > http://www.codeproject.com/net/startinggdiplus.asp.
>
> In the instructions on that webpage for installing GDI+, stdafx.h is
> referred to. Does that mean that GDI+ works only with MFC? If not, do
> you need stdafx.h if you aren't using MFC?

stdafx.h isn't necessarily MFC -- when you use the Visual C++ 6 AppWizard,
it always creates a header called stdafx.h and generates a precompiled
header from it.


Dan Amodeo

unread,
Jun 1, 2001, 8:36:25 PM6/1/01
to
Rui Lopes wrote:

> [for] an intro [to] GDI+ goto
> http://www.codeproject.com/net/startinggdiplus.asp.

In the instructions on that webpage for installing GDI+, stdafx.h is
referred to. Does that mean that GDI+ works only with MFC? If not, do
you need stdafx.h if you aren't using MFC?

Dan Amodeo

Feng Yuan

unread,
Jun 3, 2001, 8:09:58 PM6/3/01
to
GDI+ works with or without MFC.

But if you want to use GDI+ with MFC, be careful of the redifinition of the
new operator used in normal MFC program. If it's used on GDI+ objects, there
will be a compile time error, because the redefined new operator with
filename and line number parameters is not defined in GDI+ header files.

Feng Yuan www.fengyuan.com


0 new messages