gimp/plug-ins/file-bmp/bmp-export.h
Rupert 173d7640b7 plug-ins: Clean up BMP plug-in
This patch adds additional error handling
to the BMP plug-in. It also translates certain
variable names from German to English,
replaces magic numbers with existing
constants, and simplifies some formulas.
2024-10-31 17:31:17 +00:00

43 lines
1.5 KiB
C

/*
* GIMP - The GNU Image Manipulation Program
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef __BMP_EXPORT_H__
#define __BMP_EXPORT_H__
typedef enum
{
RGB_565, /* 16bit BI_BITFIELDS */
RGBA_5551, /* 16bit BI_BITFIELDS */
RGB_555, /* 16bit BI_RGB */
RGB_888, /* 24bit BI_RGB */
RGBA_8888, /* 32bit BI_BITFIELDS */
RGBX_8888, /* 32bit BI_BITFIELDS */
} RGBMode;
GimpPDBStatusType export_image (GFile *file,
GimpImage *image,
GimpDrawable *drawable,
GimpRunMode run_mode,
GimpProcedure *procedure,
GObject *config,
GError **error);
#endif /* __BMP_EXPORT_H__ */