---
name: "im_bits_of_fmt"
section: "3"
platform: "linux"
package: "libvips-dev"
version: "7.20.7-1+b3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/im_bits_of_fmt"
---

# im\_bits\_of\_fmt(3)

return number of bits of band format

## NAME

im\_bits\_of\_fmt - return number of bits of band format

## SYNOPSIS

**#include \<vips/vips.h\>**

**int im\_bits\_of\_fmt( int bandfmt )**

## DESCRIPTION

**[im\_bits\_of\_fmt(3)](/im_bits_of_fmt/3.md)** calculates the number of bits of band format.

## RETURN VALUE

On success this function returns the number of bits of band format and -1 is returned on error.
