Vips.Image.msb

### Method

# Vips Imagemsb

#### Declaration [src]

    int
    vips_msb (
      VipsImage* in,
      VipsImage** out,
      ...
    )

#### Description [src]

Turn any integer image to 8-bit unsigned char by discarding all but the most significant byte. Signed values are converted to unsigned by adding 128.

Use `band` to make a one-band 8-bit image.

This operator also works for LABQ coding.

Optional arguments

- `band`: `gint`, msb just this band

See also

`vips_scale()`, `vips_cast()`.

This method is not directly available to language bindings.

#### Parameters

`out`

  Type: `VipsImage`

  Output image.

  The argument will be set by the function.
  The caller of the method takes ownership of the returned data, and is responsible for freeing it.

`...`

  Type: ``

  `NULL`-terminated list of optional named arguments.

#### Return value

Type: `int`

0 on success, -1 on error.