Edit palette  
Top  Previous  Next

 
Menu:   Processing > Palette > Edit  

Use this tool to edit display palettes
of palettized images and pseudo-color display palettes of gray images. All changes made to the palette of the current image are previewed in real time in the image frame and the Palette Pane (see Palette Bar for more details). To use the Palette Editor, choose the Palette submenu from the Processing Processing menu and then choose Edit or simply double-click the Palette Pane on the Palette Bar if the current image is a palettized one or a gray one (see Image Types for more details). Assigning pseudo-colors to gray images can be especially useful for better visual distinction of the image areas with close gray values. Note that pseudo-colored gray images can be stored in the IWD, TIFF, and FITS file formats only. The Palette Editor dialog box will appear with the following options:

Input
 
Displays the input image frame number. If you want to edit another image's palette, type or select the corresponding value.  

Output
 
Displays the number of the frame in which the output image will be created. Depending on the Preferences. ImageWarp will set it either to the first available value or to the Input frame number. Type or select another value if you want the output image to be created in a different frame.  

Width
 
Displays the width of the color palette segment being modified. By default, ImageWarp sets it to 1. To assign a specified color to more than one level of the palette, type or select the desired value. The selected segment is displayed as a blinking rectangle on the Color scale and as a square grid on the Palette Pane. If you assign a new color to the selected palette segment by clicking one of the color bars on the dialog box, ImageWarp will automatically apply the selected color to the new palette indices covered by the increased segment according to the increase of the Width value.  

Index
 
Displays the value of the current palette index (or the first index in the modified palette segment in case the Width value is greater than one). The corresponding RGB values are displayed in the Red, Green and Blue boxes. To  
choose a different index, type or select the desired value or click on another location in the Color scale. You can also drag the blinking rectangle to a new position. If you modify the current level, the Index value changes accordingly. To assign a new color to a selected palette index or segment, simply click one of the color bars. The new color will be applied to all image pixels whose values belong to the currently selected segment.  

Color scale
 
Displays the modified color palette. The blinking rectangle is defined by the Index and Width values and shows the current index/segment of the palette being modified. For palettized images it is also duplicated on the Palette Pane with a highlighted square grid. You can change the selected index/segment interactively by dragging the blinking rectangle to a new location. Note that as you move the segment, the selection in the Palette Pane changes accordingly.  

Interpolate
 
Click this button to create a gradual palette using the interpolation technique. The boundary colors for interpolation are displayed on the buttons to the left and to the right of the Color scale. To assign a boundary color, click the corresponding button. While the button is blinking, select the desired color by changing the values of color components or by clicking on the interactive color bars. Repeat the procedure for the second boundary color and then choose the RGB or HLS interpolation model.  
To better understand this technique, imagine the interpolated palette as a straight line in a color coordinate system. The two boundary colors are the ends of such a line, while the intermediate colors are represented by gradually changing RGB or HLS coordinates. The color interpolation is especially useful for creating pseudo-colors when working with gray images.  

Current color
 
Displays the currently selected color for the palette modification. To assign the same color to several segments of the palette, drag the blinking rectangle to a new position on the Color scale and click the Current color bar.  

Restore
 
Click this button to restore the original palette indices within the currently selected segment.  

Hue
 
To define the hue (red-yellow-green-blue-purple) for the selected color, type the desired value between 0 and 239. To experiment with different colors, drag the pointer around the Color matrix.  

Sat
 
To define the saturation (the strength or purity of color in a specified hue) for the selected color, type the desired value between 0 and 240. To experiment with different colors, drag the pointer around the Color matrix.  

Lum
 
To define the luminosity (the lightness or darkness in a color) for the selected color, type the desired value between 0 (black) and 240 (white). If Sat (saturation) is 0, Lum specifies a shade of gray. To experiment with luminosity, move the slider next to the Color matrix. Note that if you move the slider to either upper or lower extreme position, the Color|Solid pane doesn't seem to response to the changes in the Hue and Sat values. This is because the upper slider position corresponds to white (0), and the lower slider position corresponds to black (240), and these colors don't have the hue and saturation characteristics. To enable Hue and Sat, move the slider a little from its extreme position.  

Red, Green, Blue
 
To define the amount of red, green and blue respectively in the selected color, type the desired values within the range of 0-255. To experiment with different colors, drag the pointer around the Color matrix.  

Basic colors
 
Shows the most frequently used basic colors. To choose a color for the currently selected palette segment, click one of the basic colors. As you do this, the pointer in the Color matrix will jump on the selected color.  

Color matrix
 
To define a color for the currently selected palette segment, click anywhere in the matrix or drag the pointer across it. Change hue by moving the pointer horizontally; change saturation by moving the pointer vertically. Use the slider to the right of the matrix to adjust luminosity.  

OK
 
Closes the dialog box and and creates a new image with a modified palette.  

Cancel
 
Closes the dialog box without performing any action.  


Note – this command is not valid for true color images.