Method
VipsImagesubsample
Declaration [src]
int
vips_subsample (
VipsImage* in,
VipsImage** out,
int xfac,
int yfac,
...
)
Description [src]
Optional arguments:
point
: turn on point sample mode
Subsample an image by an integer fraction. This is fast, nearest-neighbour shrink.
For small horizontal shrinks, this operation will fetch lines of pixels
from in
and then subsample that line. For large shrinks it will fetch
single pixels.
If point
is set, in
will always be sampled in points. This can be faster
if the previous operations in the pipeline are very slow.
See also: vips_affine(), vips_shrink(), vips_zoom().
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. | |
xfac |
int |
Horizontal shrink factor. |
|
yfac |
int |
Vertical shrink factor. |
|
... |
|
|