Babl.palette_set_palette
Description: Reference for Babl.palette_set_palette

### Function

# Bablpalette_set_palette

since: 0.1

#### Declaration [src]

    void
    babl_palette_set_palette (
      const Babl* babl,
      const Babl* format,
      void* data,
      int count
    )

#### Description [src]

Assign a palette to a palette format, the data is a single span of pixels representing the colors of the palette.

Available since: 0.1

#### Parameters

`babl`

  Type: `Babl`

  A `Babl`.

  The data is owned by the caller of the function.

`format`

  Type: `Babl`

  The pixel format.

  The data is owned by the caller of the function.

`data`

  Type: An array of `guint8`

  The pixel data.

  The data is owned by the caller of the function.

`count`

  Type: `int`

  The number of pixels in `data`.