2.4. Diálogo Mapa de colores

Figura 14.14. El diálogo Mapa de colores

El diálogo Mapa de colores
El diálogo Mapa de colores

Este diálogo le permite editar el mapa de colores de una imagen indizada. Si el modo de la imagen activa es RGB o "a escala de grises" en vez de indizado, este diálogo se muestra vacío porque no tendría utilidad. Es un diálogo empotrable, y se puede activar de dos maneras:

2.4.1. Activating the dialog

The Colormap dialog is a dockable dialog; see the section Sección 2.3, “Diálogos empotrables” for help on manipulating it.

You can access it:

  • from the image menu: WindowsDockable DialogsColormap;

  • from the Tab menu in any dockable dialog by clicking on and selecting Add TabColormap.

In the Windows menu, there is a list of detached windows which exists only if at least one dialog remains open. In this case, you can raise the Colormap dialog from the image-menu: WindowsColormap.

2.4.2. Mapa de colores e imágenes indizadas

In an Indexed image, instead of being assigned a color directly (as happens in RGB and Grayscale images), colors are assigned to pixels by an indirect method, using a look-up table called a colormap.

To determine the color that should be shown for that pixel, GIMP looks up the index in the image's colormap. Each indexed image has its own private colormap. In GIMP, the maximum number of entries in a colormap is 256. For a maximum-sized colormap, each index from 0 to 255 is assigned an arbitrary RGB color. There are no rules restricting the colors that can be assigned to an index or the order they appear in: any index can be assigned any color.

It is important to realize that the colors in the colormap are the only colors available for an indexed image (that is, unless you add new colors to the colormap). This has a major effect on many GIMP operations: for example, in a pattern fill, GIMP will usually not be able to find exactly the right colors in the colormap, so it will approximate them by using the nearest color available. This is sometimes referred to as Quantization. If the colormap is too limited or poorly chosen, this can easily produce very poor image quality.

The Colormap dialog allows you to alter the colormap for an image, either by creating new entries, or by changing the colors for the existing entries. If you change the color associated with a given index, you will see the changes reflected throughout the image, as a color shift for all pixels that are assigned that index. The entries are numbered with 0 in the upper left corner, 1 to its right, etc.

2.4.3. El diálogo Mapa de colores le permite modificar el mapa de la imagen, ya sea incorporando entradas nuevas, o cambiando los colores de las entradas existentes. Si cambia el color asociado a un índice, verá el cambio reflejado en toda la imagen, para los colores afectados. Las entradas están numeradas, empezando por el índice cero en la esquina superior izquierda.

Empleo del diálogo Mapa de colores

Estas son las operaciones que puede realizar en este diálogo:

Click sobre una entrada de color

Ctrl-click on a color entry

This sets GIMP's background color to the color you Ctrl-click on, as shown in the Toolbox color area.

Cambia el color de fondo del GIMP al color clicado. Puede verse el efecto de este cambio en el área de color de la caja de herramientas.

Doble clic sobre una entrada de color

Cambia el color de frente del GIMP al color clicado, y además hace aparecer un selector de color que le permite modificar esta entrada.

Índice de colores

Puede seleccionar otra entrada tipeando su índice aquí, o haciendo clic en las flechas que presenta a la derecha.

Notación HTML

Este área muestra la representación en código hexadecimal (el que se utiliza en HTML) para el color asignado a la entrada del mapa actualmente seleccionada. Puede editar el color aquí en vez de usar el selector de color, si le resulta conveniente. Vea la definición de tripleta hexadecimal.

Editar el color

Este botón está ubicado en la esquina inferior izquierda del diálogo. Hace aparecer un selector de color, que le permite cambiar el color de la entrada actualmente seleccionada. El efecto es similar a hacer doble clic sobre la entrada, pero no cambia el color de frente del GIMP.

Añadir color

[Sugerencia] Sugerencia

If you make a mistake, you can undo it by focusing the pointer in the image whose colormap you have changed, and then pressing Ctrl+Z or choosing EditUndo in the image menu.

[Nota] Nota

This dialog provides the most commonly used methods for altering the colormap for an indexed image. The color tools, such as Brightness/Contrast, Hue/Saturation, etc, do not operate on indexed images. There are a few plug-ins that do so, including the Normalize, VColor Enhance, and Stretch Contrast operations, and it is possible to create others as well.

[Nota] Nota

Este diálogo le proporciona los métodos que más se utilizan para cambiar los colores de una imagen indizada. Las herramientas de color, como Brillo/Contraste o Tono/Saturación, no pueden usarse en este tipo de imágenes. Y sólo unos pocos filtros pueden emplearse.

2.4.4. If you paint an indexed image with a color which is not in the Colormap, GIMP will use the most similar color of the Colormap.

The Colormap context menu

Figura 14.15. If you paint an indexed image with a color which is not in the Colormap, GIMP will use the most similar color of the Colormap.

If you paint an indexed image with a color which is not in the Colormap, GIMP will use the most similar color of the Colormap.

Este área muestra la representación en código hexadecimal (el que se utiliza en HTML) para el color asignado a la entrada del mapa actualmente seleccionada. Puede editar el color aquí en vez de usar el selector de color, si le resulta conveniente. Vea la definición de tripleta hexadecimal.

Edit color

Add Color from FG

Add from FG

Add Color from BG

Add from BG

This command is enabled only if the indexed palette contains less than 256 colors. The background color of the Toolbox is appended to the color list.

Rearrange Colormap