1. A method for generating a digital image, said method comprising determining spatially non-uniform image elements by using a set of parameters, wherein said set of parameters comprises information about the relative density of white and/or black pixels of a first group of pixels of said binary digital image, and information about the relative density of white and/or black pixels of a second group of pixels of said binary digital image; wherein said set of parameters further comprises information about the distribution of white and/or black pixels within said first group of pixels of said binary digital image; and wherein said image elements comprise a plurality of spatially uniform sub-pixels, wherein at least one image element comprises a first sub-pixel representing a first shade, and a second sub-pixel representing a second shade, and wherein the first shade is different from the second shade.