Method

VipsImagedraw_rect1

Declaration [src]

int
vips_draw_rect1 (
  VipsImage* image,
  double ink,
  int left,
  int top,
  int width,
  int height,
  ...
)

Description [src]

As vips_draw_rect(), but just take a single double for ink.

::: tip “Optional arguments” * fill: gboolean, fill the rect

::: seealso vips_draw_rect().

Parameters

ink double
 

Value to draw.

left int
 

Area to paint.

top int
 

Area to paint.

width int
 

Area to paint.

height int
 

Area to paint.

... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, or -1 on error.