home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / libgimp / gimpexport.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-11-19  |  1.9 KB  |  62 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995-1999 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimpexport.h
  5.  * Copyright (C) 1999-2000 Sven Neumann <sven@gimp.org>
  6.  * 
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Lesser General Public
  9.  * License as published by the Free Software Foundation; either
  10.  * version 2 of the License, or (at your option) any later version.
  11.  *
  12.  * This library is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  * Lesser General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU Lesser General Public
  18.  * License along with this library; if not, write to the
  19.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  * Boston, MA 02111-1307, USA.
  21.  */
  22.  
  23. #ifndef __GIMP_EXPORT_H__
  24. #define __GIMP_EXPORT_H__
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif /* __cplusplus */
  29.  
  30. /* For information look into the C source or the html documentation */
  31.  
  32.  
  33. typedef enum
  34. {
  35.   GIMP_EXPORT_CAN_HANDLE_RGB                 = 1 << 0,
  36.   GIMP_EXPORT_CAN_HANDLE_GRAY                = 1 << 1,
  37.   GIMP_EXPORT_CAN_HANDLE_INDEXED             = 1 << 2,
  38.   GIMP_EXPORT_CAN_HANDLE_ALPHA               = 1 << 3,
  39.   GIMP_EXPORT_CAN_HANDLE_LAYERS              = 1 << 4,
  40.   GIMP_EXPORT_CAN_HANDLE_LAYERS_AS_ANIMATION = 1 << 5,
  41.   GIMP_EXPORT_NEEDS_ALPHA                    = 1 << 6
  42. } GimpExportCapabilities;
  43.   
  44. typedef enum
  45. {
  46.   GIMP_EXPORT_CANCEL,
  47.   GIMP_EXPORT_IGNORE,
  48.   GIMP_EXPORT_EXPORT
  49. } GimpExportReturnType;
  50.  
  51. GimpExportReturnType gimp_export_image (gint32                 *image_ID,
  52.                     gint32                 *drawable_ID,
  53.                     const gchar            *format_name,
  54.                     GimpExportCapabilities  capabilities);
  55.  
  56.  
  57. #ifdef __cplusplus
  58. }
  59. #endif /* __cplusplus */
  60.  
  61. #endif /* __GIMP_EXPORT_H__ */
  62.