Vips.Image.jp2ksave_target

### Method

# Vips Imagejp2ksave_target

#### Declaration [src]

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

#### Description [src]

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

Optional arguments

- `Q`: `gint`, quality factor
- `lossless`: `gboolean`, enables lossless compression
- `tile_width`: `gint`, tile width
- `tile_height`: `gint`, tile width
- `subsample_mode`: `VipsForeignSubsample`, chroma subsampling mode

See also

`vips_jp2ksave()`, `vips_image_write_to_target()`.

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.