Hi Jason,

Thanks for your reply. Actually my application includes different algorithms
to smooth spectral data, some of them based on the Wavelet transform.
However, even though they are pretty fast, they are far from being helpful
for real time displaying purposes as the data I have to plot are usually
>1024x1024 data points.
Either way, I find your comments to be very helpful. Thank you very much!

Regards,
Carlos


> -----Mensaje original-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En
> nombre de Jason Teagle
> Enviado el: martes, 18 de octubre de 2005 23:35
> Para: msvc@BeginThread.com
> Asunto: Re: [msvc] GDI & antialiasing
> 
> > >I have an application that displays 2D X-Y plots using standard GDI
> > >functions (e.g. CDC::LineTo, CDC::MoveTo). I'd like to improve the
> > >appearance of these graphics by using antialiasing. I think GDI+
> supports
> > >this feature natively (not sure though) but at this time my
> > project cannot
> > >use GDI+. Does anyone know any simple way to implement antialiasing for
> > >standard GDI primitives?
> 
> If you can do your drawing to an off-screen buffer, then anti-alias the
> entire drawn output at once, then finally blit to the screen (being able
> to
> work on the finished drawing all in one go is the key here), then you can
> achieve some fairly respectable results with very little effort by doing
> your own AA.
> 
> Attached are three blown-up images. With XP's "smooth edges of fonts"
> switched off for fullest effect, you can see the effects of 0, 1 and 2
> passes of a simple algorithm. The algorithm I used simply takes an average
> of a pixel and its 8 immediate neighbours, then replaces itself with that
> colour. Thoroughly crude (I'm sure you can come up with something a bit
> better!), but really not so shabby.
> 
> Obviously if you try this on-screen it will (a) be humongously slower, and
> (b) risk getting wrong results if pixels you have drawn are covered by
> other
> windows (since GetPixel() doesn't work in that case, it returns -1).
> 
> --
> Jason Teagle
> [EMAIL PROTECTED]




_______________________________________________
msvc mailing list
msvc@beginthread.com
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to