Function

Vipscheck_draw

Declaration [src]

int
vips_check_draw (
  const char* domain,
  VipsImage* image
)

Description [src]

Check that the image can be drawn on, that is, that image is fully in memory and can be written to. If not, set an error message and return non-zero.

Use vips_image_copy_draw() to make an image that can be drawn on.

Parameters

domain

Type: const char*

The originating domain for the error message.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
image

Type: VipsImage

Image to check.

The data is owned by the caller of the function.

Return value

Type: int

0 on OK, or -1 on error.