// vertical resampling of the temporary buffer (which has been
// horizontally resampled)
System.out.println("Vertical resampling...");
for (int x = 0; x < destW; ++x)
{
for (int destY = 0; destY < destH; ++destY)
{
count = 0;
a = 0;
r = 0;
b = 0;
g = 0; // initialize color blending vars
int srcY = (destY * ratioH) >> FP_SHIFT; // calculate
// beginning of
// sample
int srcY2 = ((destY + 1) * ratioH) >> FP_SHIFT; // calculate
// end of
// sample