Patent ID: 8116582

Claim:
A method performed by a computer system of positioning an image in an electronic document, the method comprising: determining, by the computer system, a plurality of colors based upon a type of the image and information concerning a reader device to be used for reading the image; receiving, by the computer system, information specifying a constraint on where the image is to be positioned within the electronic document, the received information identifying a content region of the electronic document with which the image is to be associated; determining, by the computer system, a first area within the electronic document for positioning the image; and determining, by the computer system, based upon the first area, a set of one or more colors from the plurality of colors for generating the image, wherein the set of colors comprises one or more colors selected from the plurality of colors that are closest to one or more colors of a region of the electronic document comprising the first area and area surrounding the first area; wherein determining the first area comprises: determining a portion of the electronic document based upon the constraint, the determined portion of the electronic document comprising the content region and a region proximal to the content region; analyzing the portion to determine a feature of the portion; and determining the first area based upon the feature of the portion.