The appearance of bitmap output can be affected by the stretch mode, which determines how lines eliminated from the bitmap are combined. If an application copies a bitmap to a device and it is necessary to shrink or expand the bitmap before drawing, the effects of the StretchBlt and StretchDIBits functions can be controlled by calling the SetStretchBltMode function to set the current stretch mode for a device context.