Image Correction
I am currently using OpenGL as a realtime solution for removing barrel distortion from images. I have written code which creates a 3-d shape and place my image on it as a texture. The shape is pretty much a 2-d square with the center sunken in and the four side pinched in. This corrects the barrel distortion, but now I need to some how save the way the image looks on screen. I figure the only way I could do this would be to take a screen shot of the screen, and save it as a bitmap. I ideally want to get 32 frames per second, so this is going to be too slow. If anyone one can see a better way to do this, please let me know.
[636 byte] By [
ijmiller] at [2007-11-19 10:48:17]

# 1 Re: Image Correction
I'm a little confused about what your goal is, but I'll try to address the issue.
I assume you're drawing the GL bits onto a window's DC. If so, you can BitBlt from the window's DC to a memory DC/Bitmap and get access to the bits with GetDIBits().
but now I need to some how save the way the image looks on screen
What do you mean by "save"? Do you need to save it to a file or use the HBITMAP or whatever in your running code?
Maybe I'm lost, but that seems like your best solution. If you want some code help, let me know.
sulu