gimpchecks

gimpchecks — Constants and functions related to rendering checkerboards.

Synopsis




#define     GIMP_CHECK_SIZE
#define     GIMP_CHECK_SIZE_SM
#define     GIMP_CHECK_DARK
#define     GIMP_CHECK_LIGHT
void        gimp_checks_get_shades          (GimpCheckType type,
                                             guchar *light,
                                             guchar *dark);

Description

Constants and functions related to rendering checkerboards.

Details

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.


gimp_checks_get_shades ()

void        gimp_checks_get_shades          (GimpCheckType type,
                                             guchar *light,
                                             guchar *dark);

Retrieves the actual shades of gray to use when drawing a checkerboard for a certain GimpCheckType.

type : the checkerboard type
light : return location for the light shade
dark : return location for the dark shade

Since GIMP 2.2