摘要 |
Techniques are disclosed for color selection in a desktop publishing application. A color selection technique includes receiving a selection of an image, automatically sampling a color from a pixel of the selected image, and adding the sampled color to a color swatch in a graphical user interface. The sampled color may be the predominant color in the image (e.g., the color that appears in the greatest number of pixels), or the sampled color may be the darkest or lightest color in the image. In another embodiment, several colors (e.g., two, three, four, five, six, seven, eight, nine or ten) are sampled from different pixels of the selected image, and some or all of the sampled colors are added to the color swatch. A designer can then select the sampled color(s) from the color swatch and apply the selected color(s) to one or more elements of a layout. |