Gimp.ColorProfile.get_lcms_format
function get_lcms_format(format: Babl.Object): [return_value: Babl.Object, lcms_format: Number(guint32)] {
// Gjs wrapper for 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.
Note that this function currently only supports RGB, RGBA, R'G'B', R'G'B'A, Y, YA, Y', Y'A and the cairo-RGB24 and cairo-ARGB32 formats.
Since 2.10
- format
a #Babl format
- return_value
the #Babl format to be used instead of format, or null if the passed format is not supported at all.
- lcms_format
return location for an lcms format