Method

VipsImagegravity

Declaration [src]

int
vips_gravity (
  VipsImage* in,
  VipsImage** out,
  VipsCompassDirection direction,
  int width,
  int height,
  ...
)

Description [src]

The opposite of vips_extract_area(): place in within an image of size width by height at a certain gravity.

extend controls what appears in the new pels, see VipsExtend.

Optional arguments

This method is not directly available to language bindings.

Parameters

out

Type: VipsImage

Output image.

The data is owned by the caller of the method.
direction

Type: VipsCompassDirection

Place in at this direction in out.

width

Type: int

out should be this many pixels across.

height

Type: int

out should be this many pixels down.

...

Type: 

NULL-terminated list of optional named arguments.

Return value

Type: int

0 on success, -1 on error.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy