MFC and GDI+
- From: "David Webber" <dave@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 16 Apr 2007 19:12:22 +0100
In my continuing struggle to arrive in the 21st century I am trying to use
GDI+ in my MFC app.
I have added the initialisation and clear-up, and at one point in the
drawing code I have effectively replaced a
pDC->MoveTo(...);
pDC->LineTo(....);
by
Graphics graphics( pDC->m_hDC );
graphics.SetSmoothingMode( SmoothingModeAntiAlias );
graphics.DrawLine(....);
The anti-aliased line drawing is magnificent. Well it is magnificent on
the screen. And it works in print-preview. But the line is just missing
altogether on the printer! [And taking out the antialiasing line doesn't
improve things.]
Any ideas? Is the Graphics constructor OK for a printer hDC?
Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm
.
- Follow-Ups:
- Re: MFC and GDI+
- From: Michael Phillips, Jr.
- Re: MFC and GDI+
- Prev by Date: pointer to global var different in baseclass?
- Next by Date: Re: free software for monitoingr the data traffic?
- Previous by thread: pointer to global var different in baseclass?
- Next by thread: Re: MFC and GDI+
- Index(es):
Loading