1. A method for generating high-resolution bitmaps from low-resolution bitmaps, comprising the process actions of: using a computing device for, magnifying a low-resolution bitmap to form a magnified image; performing edge detection on the magnified image to produce an edge map; generating a plurality of image patches of the magnified image; performing connected components analysis coupled to each of the plurality of image patches and the edge map, to identify one or more foreground and background regions for each image patch, wherein performing connected components analysis further comprises: determining foreground and background regions of each image patch; and computing a blending factor based on the mean luminances of the foreground and background regions; enhancing the contrast of one or more pixels in each of the plurality of image patches, said enhancing depending on whether the pixel is in the foreground or background region; and producing a high-resolution bitmap from the contrast-enhanced pixels.