Top |
GimpColorProfile * | gimp_image_get_color_profile () |
gboolean | gimp_image_set_color_profile () |
gboolean | gimp_image_set_color_profile_from_file () |
GimpColorProfile * | gimp_image_get_effective_color_profile () |
gboolean | gimp_image_convert_color_profile () |
gboolean | gimp_image_convert_color_profile_from_file () |
GimpColorProfile *
gimp_image_get_color_profile (gint32 image_ID
);
Returns the image's color profile
This procedure returns the image's color profile, or NULL if the image has no color profile assigned.
Since: 2.10
gboolean gimp_image_set_color_profile (gint32 image_ID
,GimpColorProfile *profile
);
Sets the image's color profile
This procedure sets the image's color profile.
Since: 2.10
gboolean gimp_image_set_color_profile_from_file (gint32 image_ID
,const gchar *uri
);
Sets the image's color profile from an ICC file
This procedure sets the image's color profile from a file containing an ICC profile, or unsets it if NULL is passed as 'uri'. This procedure does no color conversion.
Since: 2.10
GimpColorProfile *
gimp_image_get_effective_color_profile
(gint32 image_ID
);
Returns the color profile that is used for the image.
This procedure returns the color profile that is actually used for
this image, which is the profile returned by
gimp_image_get_color_profile()
if the image has a profile assigned,
or the default RGB profile from preferences if no profile is
assigned to the image. If there is no default RGB profile configured
in preferences either, a generated default RGB profile is returned.
Since: 2.10
gboolean gimp_image_convert_color_profile (gint32 image_ID
,GimpColorProfile *profile
,GimpColorRenderingIntent intent
,gboolean bpc
);
Convert the image's layers to a color profile
This procedure converts from the image's color profile (or the default RGB profile if none is set) to the given color profile. Only RGB color profiles are accepted.
image_ID |
The image. |
|
profile |
The color profile to convert to. |
|
intent |
Rendering intent. |
|
bpc |
Black point compensation. |
Since: 2.10
gboolean gimp_image_convert_color_profile_from_file (gint32 image_ID
,const gchar *uri
,GimpColorRenderingIntent intent
,gboolean bpc
);
Convert the image's layers to a color profile
This procedure converts from the image's color profile (or the default RGB or grayscale profile if none is set) to an ICC profile specified by 'uri'. Only RGB and grayscale color profiles are accepted, according to the image's type.
image_ID |
The image. |
|
uri |
The URI of the file containing the new color profile. |
|
intent |
Rendering intent. |
|
bpc |
Black point compensation. |
Since: 2.10