Fractional Offsets


We can use ceiling to find the leftmost pixel in span and floor to find the rightmost pixel.

The trick comes when interpolating color values. It is straightforward to interpolate along the edges, but you must be careful when offsetting from the edge to the pixel's center.

Lecture 6   Slide 8   6.837 Fall '01