Jump to content
  • Advertisement
Sign in to follow this  
docyoung83

OpenGL better-quality glPixelZoom results

This topic is 4838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The glPixelZoom() function gives perfectly fine results for games and the like, but in my case I am wanting to use it for some image processing software which needs very high quality (i.e. too slow for game speed) results. I already have the software written now using Win32 functions that give me the quality I want, but I would like to switch over to OpenGL for (hopefully) improved speed in some areas. The Win32 functions that give the best results are using StretchBlt with halftone, so that even huge 4096x4096 images retain excellent quality when zoomed to 10%. Doing the same with glPixelZoom() gives average quality, which is unfortunately unacceptable for this particular case. Is there any way to improve OpenGL's pixel zooming functionality to get this "halftone"-like quality. I've tried: glHint(GL_POINT_SMOOTH_HINT, GL_NICEST) with no luck. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
hmm, I was under the impression that StrechBlt was fairly hardware accelerated already?
Anyway you might want to try doing the resizing in multiple steps, say:
4096 -> 2048 -> 1024 -> etc

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!