Constructor

VipsImageblack

Declaration [src]

int
vips_black (
  VipsImage** out,
  int width,
  int height,
  ...
)

Description [src]

Make a black unsigned char image of a specified size.

::: tip “Optional arguments” * bands: gint, output bands

::: seealso vips_xyz(), vips_text(), vips_gaussnoise().

Parameters

out VipsImage
 

Output image.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
width int
 

Output width.

height int
 

Output height.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.