gimp-image-new-with-precision

Michael Natterer <mitch@gimp.org>

Description

Creates a new image with the specified width, height, type and precision.

Help

Creates a new image, undisplayed with the specified extents, type and precision. Indexed images can only be created at GIMP_PRECISION_U8_GAMMA precision. See 'gimp-image-new' for further details.


Type

unknown

Parameters

Type Name Description
PF_INT width The width of the image (1 <= width <= 524288)
PF_INT height The height of the image (1 <= height <= 524288)
PF_INT type The type of image { RGB (0), GRAY (1), INDEXED (2) }
PF_INT precision The precision { PRECISION-U8-LINEAR (100), PRECISION-U8-GAMMA (150), PRECISION-U16-LINEAR (200), PRECISION-U16-GAMMA (250), PRECISION-U32-LINEAR (300), PRECISION-U32-GAMMA (350), PRECISION-HALF-LINEAR (500), PRECISION-HALF-GAMMA (550), PRECISION-FLOAT-LINEAR (600), PRECISION-FLOAT-GAMMA (650), PRECISION-DOUBLE-LINEAR (700), PRECISION-DOUBLE-GAMMA (750) }

Return

Type Name Description
PF_IMAGE image The ID of the newly created image