A new algorithm is proposed to generate a bilevel representation of a greylevel picture. An image can be regarded as a combination of constant regions and edge-containing regions. Quad tree is employed for segmentation of edge-containing regions from constant regions. This segmentation enables to produce satisfactory constant regions without blurring the edges. Additionally, block compression can be easily implemented on the results of this algorithm.