I\'m trying to write a basic bicubic resize algorithm to resize a 24-bit RGB bitmap. I have a general understanding of the math involved, and I\'m using this i
You should switch the x and z when you call getpixel, and in getpixel you should index the array using:
x
z
getpixel
[(y * 3 * src_width) + (3 * x) + channel]