user: Show practical ways to work with Header in a Blender add-on or script – include code.

assistant: Mode
:   View:
    :   Displays images.

    Paint:
    :   [Texture Paint](../../sculpt_paint/texture_paint/index.xhtml).

    Mask:
    :   [Masking](../../movie_clip/masking/index.xhtml).

View
:   Tools for controlling how the content is displayed in the editor.
    See [Navigating](navigating.xhtml).

Image
:   Tools for opening and manipulating images. Shows an asterisk if the image
    has unsaved changes. See [Editing Images](editing.xhtml).

Image
:   A [data-block menu](../../interface/controls/templates/data_block.xhtml#ui-data-block) used for selecting images.
    Once an image is selected, the [Image tab](image_settings.xhtml)
    appears in the Sidebar region.

    Apart from loading existing images, you can also create new ones:

    [image reference removed]

    The pop-over that’s displayed when clicking “New Image” in the header.

    The *Tiled* option creates an image with support for
    [UDIMs](../../modeling/meshes/uv/workflows/udims.xhtml). For the other options, see
    [Generated Images](image_settings.xhtml#image-generated).

    In addition to images, the data-block selector includes the following items:

    - Render Result: displays renders. When this item is selected, the *Slot*,
      *View Layer*, and *Render Pass* selectors become available (see below).
    - Viewer Node: displays the image that’s fed into the
      [Viewer Node](../../compositing/types/output/viewer.xhtml) in the Compositor.

Image Pin
:   Prevents the Image Editor from automatically switching to the texture of
    the selected object. (This switching only happens if the 3D Viewport is
    in [Texture Paint](../../sculpt_paint/texture_paint/introduction.xhtml) mode).

Show Sequencer Scene
:   This toggle is only visible on the Render Result if a [Sequencer Scene](../../video_editing/sequencer_scene.xhtml) exists, and it differs from the active scene in the window. After rendering, its state is chosen automatically from the render type.

Slot
:   The render slot to view (and render to). You can create new renders without
    losing previous ones by selecting an empty slot before rendering. Afterwards,
    you compare them by pressing `J` and `Alt`-`J` to cycle forwards and backwards.
    Alternatively, you can use the number keys `1`, `2`, `3` etc.
    to select the slot with the corresponding number.

    Slots can be renamed by double clicking their name in the Image panel in the Sidebar.

View Layer
:   The [View Layer](../../render/layers/introduction.xhtml) to display.

Render Pass
:   The [Render Pass](../../render/layers/passes.xhtml) to display.

Viewport Gizmos
:   Lets you show/hide all gizmos using the toggle button, or specific gizmos using
    the drop-down arrow.

    Navigate
    :   Enable/disable the gizmos used to pan or zoom the 2D viewport.
        See [Navigation Gizmos](navigating.xhtml#editors-image-navigate-gizmos) for more information.

Display Channels
:   Select which color channels are displayed.

    Color & Alpha:
    :   Enables transparency and shows a checkerboard behind the image.

    Color:
    :   Disables transparency.

    Alpha:
    :   Displays the alpha channel as a grayscale image. White areas are opaque,
        black areas are transparent.

    Z-Buffer:
    :   Displays the depth from the camera, from Clip Start to Clip End,
        as specified in the [Camera settings](../../render/cameras.xhtml).

    Red, Green, Blue:
    :   Single color channel visualized as a grayscale image.