2000-05-31 14:15:06 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
2003-07-03 08:47:26 +08:00
|
|
|
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
|
2000-05-31 14:15:06 +08:00
|
|
|
*
|
|
|
|
* gimpimage_pdb.h
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2000-05-31 14:15:06 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2000-06-01 20:20:13 +08:00
|
|
|
*
|
2000-05-31 14:15:06 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2000-06-01 20:20:13 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2000-05-31 14:15:06 +08:00
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
2000-06-01 20:20:13 +08:00
|
|
|
*/
|
|
|
|
|
2007-01-09 18:52:47 +08:00
|
|
|
/* NOTE: This file is auto-generated by pdbgen.pl */
|
2000-05-31 14:15:06 +08:00
|
|
|
|
2011-04-29 01:59:52 +08:00
|
|
|
#if !defined (__GIMP_H_INSIDE__) && !defined (GIMP_COMPILATION)
|
|
|
|
#error "Only <libgimp/gimp.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2000-05-31 14:15:06 +08:00
|
|
|
#ifndef __GIMP_IMAGE_PDB_H__
|
|
|
|
#define __GIMP_IMAGE_PDB_H__
|
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_BEGIN_DECLS
|
2000-05-31 14:15:06 +08:00
|
|
|
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
|
|
|
2015-05-31 05:55:58 +08:00
|
|
|
gboolean gimp_image_is_valid (gint32 image_ID);
|
|
|
|
gint* gimp_image_list (gint *num_images);
|
|
|
|
gint32 gimp_image_new (gint width,
|
|
|
|
gint height,
|
|
|
|
GimpImageBaseType type);
|
|
|
|
gint32 gimp_image_new_with_precision (gint width,
|
|
|
|
gint height,
|
|
|
|
GimpImageBaseType type,
|
|
|
|
GimpPrecision precision);
|
|
|
|
gint32 gimp_image_duplicate (gint32 image_ID);
|
|
|
|
gboolean gimp_image_delete (gint32 image_ID);
|
|
|
|
GimpImageBaseType gimp_image_base_type (gint32 image_ID);
|
|
|
|
GimpPrecision gimp_image_get_precision (gint32 image_ID);
|
|
|
|
gint gimp_image_width (gint32 image_ID);
|
|
|
|
gint gimp_image_height (gint32 image_ID);
|
2012-05-03 07:12:25 +08:00
|
|
|
GIMP_DEPRECATED_FOR(gimp_drawable_free_shadow)
|
2015-05-31 05:55:58 +08:00
|
|
|
gboolean gimp_image_free_shadow (gint32 image_ID);
|
|
|
|
gint* gimp_image_get_layers (gint32 image_ID,
|
|
|
|
gint *num_layers);
|
|
|
|
gint* gimp_image_get_channels (gint32 image_ID,
|
|
|
|
gint *num_channels);
|
|
|
|
gint* gimp_image_get_vectors (gint32 image_ID,
|
|
|
|
gint *num_vectors);
|
|
|
|
gint32 gimp_image_get_active_drawable (gint32 image_ID);
|
|
|
|
gboolean gimp_image_unset_active_channel (gint32 image_ID);
|
|
|
|
gint32 gimp_image_get_floating_sel (gint32 image_ID);
|
|
|
|
gint32 gimp_image_floating_sel_attached_to (gint32 image_ID);
|
|
|
|
gboolean gimp_image_pick_color (gint32 image_ID,
|
|
|
|
gint32 drawable_ID,
|
|
|
|
gdouble x,
|
|
|
|
gdouble y,
|
|
|
|
gboolean sample_merged,
|
|
|
|
gboolean sample_average,
|
|
|
|
gdouble average_radius,
|
|
|
|
GimpRGB *color);
|
|
|
|
gint32 gimp_image_pick_correlate_layer (gint32 image_ID,
|
|
|
|
gint x,
|
|
|
|
gint y);
|
2012-05-03 07:12:25 +08:00
|
|
|
GIMP_DEPRECATED_FOR(gimp_image_insert_layer)
|
2015-05-31 05:55:58 +08:00
|
|
|
gboolean gimp_image_add_layer (gint32 image_ID,
|
|
|
|
gint32 layer_ID,
|
|
|
|
gint position);
|
|
|
|
gboolean gimp_image_insert_layer (gint32 image_ID,
|
|
|
|
gint32 layer_ID,
|
|
|
|
gint32 parent_ID,
|
|
|
|
gint position);
|
|
|
|
gboolean gimp_image_remove_layer (gint32 image_ID,
|
|
|
|
gint32 layer_ID);
|
2012-05-03 07:12:25 +08:00
|
|
|
GIMP_DEPRECATED_FOR(gimp_image_insert_channel)
|
2015-05-31 05:55:58 +08:00
|
|
|
gboolean gimp_image_add_channel (gint32 image_ID,
|
|
|
|
gint32 channel_ID,
|
|
|
|
gint position);
|
|
|
|
gboolean gimp_image_insert_channel (gint32 image_ID,
|
|
|
|
gint32 channel_ID,
|
|
|
|
gint32 parent_ID,
|
|
|
|
gint position);
|
|
|
|
gboolean gimp_image_remove_channel (gint32 image_ID,
|
|
|
|
gint32 channel_ID);
|
2012-05-03 07:12:25 +08:00
|
|
|
GIMP_DEPRECATED_FOR(gimp_image_insert_vectors)
|
2015-05-31 05:55:58 +08:00
|
|
|
gboolean gimp_image_add_vectors (gint32 image_ID,
|
|
|
|
gint32 vectors_ID,
|
|
|
|
gint position);
|
|
|
|
gboolean gimp_image_insert_vectors (gint32 image_ID,
|
|
|
|
gint32 vectors_ID,
|
|
|
|
gint32 parent_ID,
|
|
|
|
gint position);
|
|
|
|
gboolean gimp_image_remove_vectors (gint32 image_ID,
|
|
|
|
gint32 vectors_ID);
|
|
|
|
gint gimp_image_get_item_position (gint32 image_ID,
|
|
|
|
gint32 item_ID);
|
|
|
|
gboolean gimp_image_raise_item (gint32 image_ID,
|
|
|
|
gint32 item_ID);
|
|
|
|
gboolean gimp_image_lower_item (gint32 image_ID,
|
|
|
|
gint32 item_ID);
|
|
|
|
gboolean gimp_image_raise_item_to_top (gint32 image_ID,
|
|
|
|
gint32 item_ID);
|
|
|
|
gboolean gimp_image_lower_item_to_bottom (gint32 image_ID,
|
|
|
|
gint32 item_ID);
|
|
|
|
gboolean gimp_image_reorder_item (gint32 image_ID,
|
|
|
|
gint32 item_ID,
|
|
|
|
gint32 parent_ID,
|
|
|
|
gint position);
|
|
|
|
gint32 gimp_image_flatten (gint32 image_ID);
|
|
|
|
gint32 gimp_image_merge_visible_layers (gint32 image_ID,
|
|
|
|
GimpMergeType merge_type);
|
|
|
|
gint32 gimp_image_merge_down (gint32 image_ID,
|
|
|
|
gint32 merge_layer_ID,
|
|
|
|
GimpMergeType merge_type);
|
|
|
|
G_GNUC_INTERNAL guint8* _gimp_image_get_colormap (gint32 image_ID,
|
|
|
|
gint *num_bytes);
|
|
|
|
G_GNUC_INTERNAL gboolean _gimp_image_set_colormap (gint32 image_ID,
|
|
|
|
gint num_bytes,
|
|
|
|
const guint8 *colormap);
|
|
|
|
G_GNUC_INTERNAL gchar* _gimp_image_get_metadata (gint32 image_ID);
|
|
|
|
G_GNUC_INTERNAL gboolean _gimp_image_set_metadata (gint32 image_ID,
|
|
|
|
const gchar *metadata_string);
|
|
|
|
gboolean gimp_image_clean_all (gint32 image_ID);
|
|
|
|
gboolean gimp_image_is_dirty (gint32 image_ID);
|
|
|
|
G_GNUC_INTERNAL gboolean _gimp_image_thumbnail (gint32 image_ID,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
|
|
|
gint *actual_width,
|
|
|
|
gint *actual_height,
|
|
|
|
gint *bpp,
|
|
|
|
gint *thumbnail_data_count,
|
|
|
|
guint8 **thumbnail_data);
|
|
|
|
gint32 gimp_image_get_active_layer (gint32 image_ID);
|
|
|
|
gboolean gimp_image_set_active_layer (gint32 image_ID,
|
|
|
|
gint32 active_layer_ID);
|
|
|
|
gint32 gimp_image_get_active_channel (gint32 image_ID);
|
|
|
|
gboolean gimp_image_set_active_channel (gint32 image_ID,
|
|
|
|
gint32 active_channel_ID);
|
|
|
|
gint32 gimp_image_get_active_vectors (gint32 image_ID);
|
|
|
|
gboolean gimp_image_set_active_vectors (gint32 image_ID,
|
|
|
|
gint32 active_vectors_ID);
|
|
|
|
gint32 gimp_image_get_selection (gint32 image_ID);
|
|
|
|
gboolean gimp_image_get_component_active (gint32 image_ID,
|
|
|
|
GimpChannelType component);
|
|
|
|
gboolean gimp_image_set_component_active (gint32 image_ID,
|
|
|
|
GimpChannelType component,
|
|
|
|
gboolean active);
|
|
|
|
gboolean gimp_image_get_component_visible (gint32 image_ID,
|
|
|
|
GimpChannelType component);
|
|
|
|
gboolean gimp_image_set_component_visible (gint32 image_ID,
|
|
|
|
GimpChannelType component,
|
|
|
|
gboolean visible);
|
|
|
|
gchar* gimp_image_get_filename (gint32 image_ID);
|
|
|
|
gboolean gimp_image_set_filename (gint32 image_ID,
|
|
|
|
const gchar *filename);
|
|
|
|
gchar* gimp_image_get_uri (gint32 image_ID);
|
|
|
|
gchar* gimp_image_get_xcf_uri (gint32 image_ID);
|
|
|
|
gchar* gimp_image_get_imported_uri (gint32 image_ID);
|
|
|
|
gchar* gimp_image_get_exported_uri (gint32 image_ID);
|
|
|
|
gchar* gimp_image_get_name (gint32 image_ID);
|
|
|
|
gboolean gimp_image_get_resolution (gint32 image_ID,
|
|
|
|
gdouble *xresolution,
|
|
|
|
gdouble *yresolution);
|
|
|
|
gboolean gimp_image_set_resolution (gint32 image_ID,
|
|
|
|
gdouble xresolution,
|
|
|
|
gdouble yresolution);
|
|
|
|
GimpUnit gimp_image_get_unit (gint32 image_ID);
|
|
|
|
gboolean gimp_image_set_unit (gint32 image_ID,
|
|
|
|
GimpUnit unit);
|
|
|
|
gint gimp_image_get_tattoo_state (gint32 image_ID);
|
|
|
|
gboolean gimp_image_set_tattoo_state (gint32 image_ID,
|
|
|
|
gint tattoo_state);
|
|
|
|
gint32 gimp_image_get_layer_by_tattoo (gint32 image_ID,
|
|
|
|
gint tattoo);
|
|
|
|
gint32 gimp_image_get_channel_by_tattoo (gint32 image_ID,
|
|
|
|
gint tattoo);
|
|
|
|
gint32 gimp_image_get_vectors_by_tattoo (gint32 image_ID,
|
|
|
|
gint tattoo);
|
|
|
|
gint32 gimp_image_get_layer_by_name (gint32 image_ID,
|
|
|
|
const gchar *name);
|
|
|
|
gint32 gimp_image_get_channel_by_name (gint32 image_ID,
|
|
|
|
const gchar *name);
|
|
|
|
gint32 gimp_image_get_vectors_by_name (gint32 image_ID,
|
|
|
|
const gchar *name);
|
|
|
|
gboolean gimp_image_attach_parasite (gint32 image_ID,
|
|
|
|
const GimpParasite *parasite);
|
|
|
|
gboolean gimp_image_detach_parasite (gint32 image_ID,
|
|
|
|
const gchar *name);
|
|
|
|
GimpParasite* gimp_image_get_parasite (gint32 image_ID,
|
|
|
|
const gchar *name);
|
|
|
|
gchar** gimp_image_get_parasite_list (gint32 image_ID,
|
|
|
|
gint *num_parasites);
|
2000-05-31 14:15:06 +08:00
|
|
|
|
|
|
|
|
2001-11-23 07:46:13 +08:00
|
|
|
G_END_DECLS
|
2000-05-31 14:15:06 +08:00
|
|
|
|
|
|
|
#endif /* __GIMP_IMAGE_PDB_H__ */
|