How does Preview do it? If you open an image in preview, you have the option to turn on anti-aliasing. I would love to do this in my app (an image in my app looks horrid compared to opening it in preview).
And before you ask, I am not writing a competitor to Preview, I just want my users have the option of viewing the received pdf files inside my program rather than having to go to another program.