I'm looking for an algorithm to resample (zoom/unzoom) 16bit color/grayscale images. I've found many examples, but all of them works with 8bit RGB images.The language doesn't matter, of course, better if the solution uses JavaScript Typed Arrays, but its ok if used C, C++, Pascal, etc.