-#if 0
- // This is nonsense, RR.
-
- // We do (x, y) -> (x, y)*oldSize/newSize but the valid values of x and y
- // are from 0 to size-1, hence all decrement the sizes
- long old_old_width = old_width;
- old_height--;
- old_width--;
- height--;
- width--;
- for ( long j = 0; j <= height; j++ )
- {
- // don't crash for images with height == 1
- long y_offset = height ? (j * old_height / height)* old_old_width : 0;