A method of combining a foreground image and a background image includes
scaling up a pixel of interest, which is positioned along an edge between
a subject and a key colored backing, into a plurality of edge subpixels.
The pixel of interest is included in a digital antialiased foreground
image. A corresponding pixel of a digital background scene is also scaled
up. The corresponding pixel is associated with the pixel of interest and
is scaled up into a plurality of background subpixels. For each of the
edge subpixels, if a color of the edge subpixel matches the key colored
backing, a respective new color of the edge subpixel is determined as a
function of one of the background subpixels, which is associated with the
edge subpixel. Also, the new color is stored to the edge subpixel. After
all the subpixels have been evaluated, the edge subpixels are scaled down
to a new pixel of interest.