Patent ID: 7454086

Claim:
A method performed by a computer system of positioning an image in an electronic document, the method comprising: receiving an electronic document; receiving information identifying a plurality of colors; determining a first area within the electronic document for positioning a first image; determining, based upon the first area, a set of one or more colors from the plurality of colors for generating the first 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 and wherein the first image generated using the set of colors is readable by a reader device such that information encoded by the first image is decodable; receiving information indicating a type of the first image; receiving information identifying the reader device to be used for reading the first image; and determining the plurality of colors based upon the type of the first image and the reader device to be used for reading the first image.