mirror of https://github.com/GNOME/gimp.git
69 lines
3.1 KiB
C
69 lines
3.1 KiB
C
|
/* LIBGIMP - The GIMP Library
|
||
|
* Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
|
||
|
*
|
||
|
* gimpcolorprofile.h
|
||
|
* Copyright (C) 2014 Michael Natterer <mitch@gimp.org>
|
||
|
* Elle Stone <ellestone@ninedegreesbelow.com>
|
||
|
*
|
||
|
* This library is free software: you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 3 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Library General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public
|
||
|
* License along with this library. If not, see
|
||
|
* <http://www.gnu.org/licenses/>.
|
||
|
*/
|
||
|
|
||
|
#if !defined (__GIMP_COLOR_H_INSIDE__) && !defined (GIMP_COLOR_COMPILATION)
|
||
|
#error "Only <libgimpcolor/gimpcolor.h> can be included directly."
|
||
|
#endif
|
||
|
|
||
|
#ifndef __GIMP_COLOR_PROFILE_H__
|
||
|
#define __GIMP_COLOR_PROFILE_H__
|
||
|
|
||
|
G_BEGIN_DECLS
|
||
|
|
||
|
/* For information look into the C source or the html documentation */
|
||
|
|
||
|
|
||
|
GimpColorProfile gimp_color_profile_open_from_file (GFile *file,
|
||
|
GError **error);
|
||
|
GimpColorProfile gimp_color_profile_open_from_data (const guint8 *data,
|
||
|
gsize length,
|
||
|
GError **error);
|
||
|
guint8 * gimp_color_profile_save_to_data (GimpColorProfile profile,
|
||
|
gsize *length,
|
||
|
GError **error);
|
||
|
void gimp_color_profile_close (GimpColorProfile profile);
|
||
|
|
||
|
gchar * gimp_color_profile_get_description (GimpColorProfile profile);
|
||
|
gchar * gimp_color_profile_get_manufacturer (GimpColorProfile profile);
|
||
|
gchar * gimp_color_profile_get_model (GimpColorProfile profile);
|
||
|
gchar * gimp_color_profile_get_copyright (GimpColorProfile profile);
|
||
|
|
||
|
gchar * gimp_color_profile_get_label (GimpColorProfile profile);
|
||
|
gchar * gimp_color_profile_get_summary (GimpColorProfile profile);
|
||
|
|
||
|
gboolean gimp_color_profile_is_equal (GimpColorProfile profile1,
|
||
|
GimpColorProfile profile2);
|
||
|
|
||
|
gboolean gimp_color_profile_is_rgb (GimpColorProfile profile);
|
||
|
gboolean gimp_color_profile_is_cmyk (GimpColorProfile profile);
|
||
|
|
||
|
GimpColorProfile gimp_color_profile_new_srgb (void);
|
||
|
GimpColorProfile gimp_color_profile_new_linear_rgb (void);
|
||
|
|
||
|
const Babl * gimp_color_profile_get_format (const Babl *format,
|
||
|
guint32 *lcms_format);
|
||
|
|
||
|
|
||
|
G_END_DECLS
|
||
|
|
||
|
#endif /* __GIMP_COLOR_PROFILE_H__ */
|