2000-04-07 02:59:48 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1999 Peter Mattis and Spencer Kimball
|
1999-05-10 00:38:05 +08:00
|
|
|
*
|
|
|
|
* gimplimits.h
|
|
|
|
* Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
1999-11-18 05:13:50 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
1999-05-10 00:38:05 +08:00
|
|
|
* License as published by the Free Software Foundation; either
|
2000-04-07 02:59:48 +08:00
|
|
|
* version 2 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
|
1999-12-26 15:54:39 +08:00
|
|
|
* Lesser General Public License for more details.
|
1999-05-10 00:38:05 +08:00
|
|
|
*
|
1999-11-18 05:13:50 +08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
1999-05-10 00:38:05 +08:00
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2000-05-31 07:38:46 +08:00
|
|
|
|
1999-05-10 00:38:05 +08:00
|
|
|
#ifndef __GIMP_LIMITS_H__
|
|
|
|
#define __GIMP_LIMITS_H__
|
|
|
|
|
2000-05-31 07:38:46 +08:00
|
|
|
|
1999-05-10 00:38:05 +08:00
|
|
|
/* pixel sizes
|
|
|
|
*/
|
|
|
|
#define GIMP_MIN_IMAGE_SIZE 1
|
2000-04-07 02:59:48 +08:00
|
|
|
#define GIMP_MAX_IMAGE_SIZE 16777216 /* 2^24 */
|
1999-05-10 00:38:05 +08:00
|
|
|
|
|
|
|
/* dots per inch
|
|
|
|
*/
|
2000-04-07 02:59:48 +08:00
|
|
|
#define GIMP_MIN_RESOLUTION 5e-3 /* shouldn't display as 0.000 */
|
1999-05-10 00:38:05 +08:00
|
|
|
#define GIMP_MAX_RESOLUTION 65536.0
|
|
|
|
|
1999-10-28 23:05:49 +08:00
|
|
|
/* the size of the checks which indicate transparency...
|
|
|
|
*/
|
|
|
|
#define GIMP_CHECK_SIZE 8
|
|
|
|
#define GIMP_CHECK_SIZE_SM 4
|
|
|
|
|
|
|
|
/* ...and their colors
|
|
|
|
*/
|
2000-04-07 02:59:48 +08:00
|
|
|
#define GIMP_CHECK_DARK 0.4 /* corresponds to GRAY_CHECKS as */
|
|
|
|
#define GIMP_CHECK_LIGHT 0.6 /* defined in app/image_render.c */
|
1999-10-28 23:05:49 +08:00
|
|
|
|
2000-05-31 07:38:46 +08:00
|
|
|
|
1999-05-10 00:38:05 +08:00
|
|
|
#endif /* __GIMP_LIMITS_H__ */
|