Vips.Image.ppmsave_target

### Method

# Vips Imageppmsave_target

#### Declaration [src]

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

#### Description [src]

As `vips_ppmsave()`, but save to a target.

Optional arguments

- `format`: `VipsForeignPpmFormat`, format to save in
- `ascii`: `gboolean`, save as ASCII rather than binary
- `bitdepth`: `gint`, bitdepth to save at

See also

`vips_ppmsave()`.

This method is not directly available to language bindings.

#### Parameters

`target`

  Type: `VipsTarget`

  Save image to this target.

  The data is owned by the caller of the method.

`...`

  Type: ``

  `NULL`-terminated list of optional named arguments.

#### Return value

Type: `int`

0 on success, -1 on error.