Patent ID: 7324119

Claim:
A method for configuring at least a portion of a document for display in a display environment, the method including: generating a document color palette for a color portion of an electronic document, wherein generating the document color palette includes: creating a bitmap of the color portion of the electronic document, and reducing the number of colors contained in the bitmap using color quantization based on the number of colors supported by the display environment; generating a first object color palette for a first color-containing object of the plurality, the colors of the first object color palette being selected based on colors of the first color-containing object and including a set of colors optimized for the first color-containing object; generating first a document view of the document, the first document view including the first color-containing object, where the first color-containing object in the first document view is represented using the document color palette; generating an object view for the first color-containing object, the object view being different from the first document view, where the object view is based on the first object color palette; and storing the object view and the first document view in the document.