Hi, I’ve been trying to find some basic library that will give me high quality image size reduction(bicubic/cubic interpolation)… I’ve looked at rotozoom, and it only interpolates when it enlarges, and I think it only uses linear interpolation. (Even when you are just reducing an image, there is a very noticable difference between linear and cubic interpolation)
I tried the bci library at http://nyxo.ru/ and while I could get the sample program to work, I couldn’t get it to work with how I thought it should work with SDL_surfaces…
I tried SDL_stretch, but couldn’t get it to work for anything… Do you have to rebuild SDL with that inserted into the source, or what? I’m using VC++ 2005 Express, is that what’s wrong? Would this library even do what I am wanting?
I looked at the gimp source, and couldn’t locate the proper code to see how they did it in there, since it is so massive…
The reason I want to find a library to interpolates well in reduction is that I am writing a game targeted at 1024x768, but I want to be able to let the user choose 800x600 or 640x480, and I’d like to be able to simply scale all of the images down in the program before using them, as opposed to storing a lot of prerendered reduced images of the same thing in my data/images folder. It would also allow for scaling upwards for higher res displays… Anyway, someone please help!