Method
VipsImageflatten
Declaration [src]
int
vips_flatten (
VipsImage* in,
VipsImage** out,
...
)
Description [src]
Optional arguments:
background:VipsArrayDoublecolour for new pixelsmax_alpha: %gdouble, maximum value for alpha
Take the last band of in as an alpha and use it to blend the
remaining channels with background.
The alpha channel is 0 - max_alpha,
where 1 means 100% image and 0
means 100% background.
Non-complex images only.
background defaults to zero (black).
max_alpha has the default value 255, or 65535 for images tagged as
VIPS_INTERPRETATION_RGB16 or
VIPS_INTERPRETATION_GREY16.
Useful for flattening PNG images to RGB.
See also: vips_premultiply(), vips_pngload().
| This method is not directly available to language bindings. |
Parameters
out |
VipsImage |
Output image. |
|
| The argument will be set by the function. | |
| The instance takes ownership of the data, and is responsible for freeing it. | |
... |
|
|