## gimplimits

gimplimits — Boundaries of some GIMP data types and some global constants.

## Synopsis

    #define     GIMP_MIN_IMAGE_SIZE
    #define     GIMP_MAX_IMAGE_SIZE
    #define     GIMP_MIN_RESOLUTION
    #define     GIMP_MAX_RESOLUTION
    #define     GIMP_MAX_MEMSIZE
    #define     GIMP_CHECK_SIZE
    #define     GIMP_CHECK_SIZE_SM
    #define     GIMP_CHECK_DARK
    #define     GIMP_CHECK_LIGHT

## Description

Boundaries of some GIMP data types and some global constants.

## Details

### GIMP_MIN_IMAGE_SIZE

    #define GIMP_MIN_IMAGE_SIZE  1

The minimum width and height of a GIMP image in pixels.

### GIMP_MAX_IMAGE_SIZE

    #define GIMP_MAX_IMAGE_SIZE  262144    /*  2^18  */

The maximum width and height of a GIMP image in pixels. This is a somewhat arbitray value that can be used when an upper value for pixel sizes is needed; for example to give a spin button an upper limit.

### GIMP_MIN_RESOLUTION

    #define GIMP_MIN_RESOLUTION  5e-3      /*  shouldn't display as 0.000  */

The minimum resolution of a GIMP image in pixels per inch. This is a somewhat arbitray value that can be used to when a lower value for a resolution is needed. GIMP will not accept resolutions smaller than this value.

### GIMP_MAX_RESOLUTION

    #define GIMP_MAX_RESOLUTION  65536.0

The maximum resolution of a GIMP image in pixels per inch. This is a somewhat arbitray value that can be used to when an upper value for a resolution is needed. GIMP will not accept resolutions larger than this value.

### GIMP_MAX_MEMSIZE

    #define GIMP_MAX_MEMSIZE     ((guint64) 1 << 42) /*  4 terabyte;

A large but arbitrary value that can be used when an upper limit for a memory size (in bytes) is needed. It is smaller than `G_MAXDOUBLE` since the GimpMemsizeEntry doesn't handle larger values.

### GIMP_CHECK_SIZE

    #define GIMP_CHECK_SIZE      8

The default checkerboard size in pixels. This is configurable in the core but GIMP plug-ins can't access the user preference and should use this constant instead.

### GIMP_CHECK_SIZE_SM

    #define GIMP_CHECK_SIZE_SM   4

The default small checkerboard size in pixels.

### GIMP_CHECK_DARK

    #define GIMP_CHECK_DARK      0.4

The dark gray value for the default checkerboard pattern.

### GIMP_CHECK_LIGHT

    #define GIMP_CHECK_LIGHT     0.6

The light gray value for the default checkerboard pattern.