Method

VipsImagepngsave_target

Declaration [src]

int
vips_pngsave_target (
  VipsImage* in,
  VipsTarget* target,
  ...
)

Description [src]

As vips_pngsave(), but save to a target.

::: tip “Optional arguments” * compression: gint, compression level * interlace: gboolean, interlace image * filter: VipsForeignPngFilter, row filter flag(s) * palette: gboolean, enable quantisation to 8bpp palette * Q: gint, quality for 8bpp quantisation * dither: gdouble, amount of dithering for 8bpp quantization * bitdepth: gint, set write bit depth to 1, 2, 4, 8 or 16 * effort: gint, quantisation CPU effort

::: seealso vips_pngsave(), vips_image_write_to_target().

Parameters

target VipsTarget
 

Save image to this target.

 The data is owned by the caller of the function.
... none
 

NULL-terminated list of optional named arguments.

Return value

Returns: int
 

0 on success, -1 on error.