---
name: "im_rot180"
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_rot180"
---

# im\_rot180(3)

rotate and flip an image

## NAME

im\_rot180, im\_rot270, im\_rot90, im\_fliphor, im\_flipver - rotate and flip  an image

## SYNOPSIS

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

**int im\_rot180(in, out)**\
 **IMAGE \*in, \*out;**

**int im\_rot270(in, out)**\
 **IMAGE \*in, \*out;**

**int im\_rot90(in, out)**\
 **IMAGE \*in, \*out;**

**int im\_fliphor(in, out)**\
 **IMAGE \*in, \*out;**

**int im\_flipver(in, out)**\
 **IMAGE \*in, \*out;**

## DESCRIPTION

im\_rot180(), im\_rot270() and im\_rot90(), rotate the input image in by 180, 270 and 90 degrees clockwise.  im\_fliphor() and im\_flipver(), flip in  horizontally and vertically respectively. All functions work for any size image, any type and any number of bands. All also work for LABPACK coded images.

## RETURN VALUE

All functions return 0 on success and -1 on error.

## SEE ALSO

rot180(1)

## AUTHOR

N. Dessipris - 5/12/1991
