Does UIGraphicsGetImageFromCurrentImageContext scale the image if it can't return an image of the exact size as the view?

If not, what exactly happens in that case with respect to the content at the borders of the image?