### Class

# Gimp ColorProfile

#### Description [src]

    class Gimp.ColorProfile : GObject.Object {
      parent_instance: GObject,
      priv: GimpColorProfilePrivate*
    }

Definitions and Functions relating to LCMS.

#### Ancestors

- GObject

#### Constructors

###### gimp_color_profile_new_d50_gray_lab_trc

This function creates a grayscale `GimpColorProfile` with the D50 ICC profile illuminant as the profile white point and the LAB companding curve as the TRC.

Available since: 2.10

###### gimp_color_profile_new_d65_gray_linear

No description available.

###### gimp_color_profile_new_d65_gray_srgb_trc

This function creates a grayscale `GimpColorProfile` with an sRGB TRC. See gimp_color_profile_new_rgb_srgb().

Available since: 2.10

###### gimp_color_profile_new_from_file

This function opens an ICC color profile from `file`.

Available since: 2.10

###### gimp_color_profile_new_from_icc_profile

This function opens an ICC color profile from memory. On error, `NULL` is returned and `error` is set.

Available since: 2.10

###### gimp_color_profile_new_from_lcms_profile

This function creates a GimpColorProfile from a cmsHPROFILE. On error, `NULL` is returned and `error` is set. The passed `lcms_profile` pointer is not retained by the created `GimpColorProfile`.

Available since: 2.10

###### gimp_color_profile_new_rgb_adobe

This function creates a profile compatible with AbobeRGB (1998).

Available since: 2.10

###### gimp_color_profile_new_rgb_srgb

This function is a replacement for cmsCreate_sRGBProfile() and returns an sRGB profile that is functionally the same as the ArgyllCMS sRGB.icm profile. “Functionally the same” means it has the same red, green, and blue colorants and the V4 “chad” equivalent of the ArgyllCMS V2 white point. The profile TRC is also functionally equivalent to the ArgyllCMS sRGB.icm TRC and is the same as the LCMS sRGB built-in profile TRC.

Available since: 2.10

###### gimp_color_profile_new_rgb_srgb_linear

This function creates a profile for babl_model(“RGB”). Please somebody write something smarter here.

Available since: 2.10

#### Functions

###### gimp_color_profile_get_lcms_format

This function takes a `Babl` format and returns the lcms format to be used with that `format`. It also returns a `Babl` format to be used instead of the passed `format`, which usually is the same as `format`, unless lcms doesn’t support `format`.

Available since: 2.10

#### Instance methods

###### gimp_color_profile_get_copyright

No description available.

Available since: 2.10

###### gimp_color_profile_get_description

No description available.

Available since: 2.10

###### gimp_color_profile_get_format

This function takes a `GimpColorProfile` and a `Babl` format and returns a new `Babl` format with `profile`‘s RGB primaries and TRC, and `format`‘s pixel layout.

Available since: 2.10

###### gimp_color_profile_get_icc_profile

This function returns `profile` as ICC profile data. The returned memory belongs to `profile` and must not be modified or freed.

Available since: 2.10

###### gimp_color_profile_get_label

This function returns a string containing `profile`‘s “title”, a string that can be used to label the profile in a user interface.

Available since: 2.10

###### gimp_color_profile_get_lcms_profile

This function returns `profile`‘s cmsHPROFILE. The returned value belongs to `profile` and must not be modified or freed.

Available since: 2.10

###### gimp_color_profile_get_manufacturer

No description available.

Available since: 2.10

###### gimp_color_profile_get_model

No description available.

Available since: 2.10

###### gimp_color_profile_get_space

This function returns the `Babl` space of `profile`, for the specified `intent`.

Available since: 2.10.6

###### gimp_color_profile_get_summary

This function return a string containing a multi-line summary of `profile`‘s description, model, manufacturer and copyright, to be used as detailed information about the profile in a user interface.

Available since: 2.10

###### gimp_color_profile_is_cmyk

No description available.

Available since: 2.10

###### gimp_color_profile_is_equal

Compares two profiles.

Available since: 2.10

###### gimp_color_profile_is_gray

No description available.

Available since: 2.10

###### gimp_color_profile_is_linear

This function determines is the ICC profile represented by a GimpColorProfile is a linear RGB profile or not, some profiles that are LUTs though linear will also return FALSE;

Available since: 2.10

###### gimp_color_profile_is_rgb

No description available.

Available since: 2.10

###### gimp_color_profile_new_linear_from_color_profile

This function creates a new RGB `GimpColorProfile` with a linear TRC and `profile`‘s RGB chromacities and whitepoint.

Available since: 2.10

###### gimp_color_profile_new_srgb_trc_from_color_profile

This function creates a new RGB `GimpColorProfile` with a sRGB gamma TRC and `profile`‘s RGB chromacities and whitepoint.

Available since: 2.10

###### gimp_color_profile_save_to_file

This function saves `profile` to `file` as ICC profile.

Available since: 2.10

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Signals

##### Signals inherited from GObject (1)

###### GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct GimpColorProfileClass {
      GObjectClass parent_class;
      void (* _gimp_reserved1) (
    void
      );
      void (* _gimp_reserved2) (
    void
      );
      void (* _gimp_reserved3) (
    void
      );
      void (* _gimp_reserved4) (
    void
      );
      void (* _gimp_reserved5) (
    void
      );
      void (* _gimp_reserved6) (
    void
      );
      void (* _gimp_reserved7) (
    void
      );
      void (* _gimp_reserved8) (
    void
      );

    }

###### Class members

`parent_class` |
    GObjectClass
| No description available.
`_gimp_reserved1` |
    void (* _gimp_reserved1) (
    void
      )
| No description available.
`_gimp_reserved2` |
    void (* _gimp_reserved2) (
    void
      )
| No description available.
`_gimp_reserved3` |
    void (* _gimp_reserved3) (
    void
      )
| No description available.
`_gimp_reserved4` |
    void (* _gimp_reserved4) (
    void
      )
| No description available.
`_gimp_reserved5` |
    void (* _gimp_reserved5) (
    void
      )
| No description available.
`_gimp_reserved6` |
    void (* _gimp_reserved6) (
    void
      )
| No description available.
`_gimp_reserved7` |
    void (* _gimp_reserved7) (
    void
      )
| No description available.
`_gimp_reserved8` |
    void (* _gimp_reserved8) (
    void
      )
| No description available.