Method
VipsImageinit_fields
Declaration [src]
void
vips_image_init_fields (
VipsImage* image,
int xsize,
int ysize,
int bands,
VipsBandFormat format,
VipsCoding coding,
VipsInterpretation interpretation,
double xres,
double yres
)
Description [src]
A convenience function to set the header fields after creating an image.
Normally you copy the fields from your input images with
[method.Image.pipelinev] and then make any adjustments you need,
but if you are creating an image from scratch, for example
vips_black() or vips_jpegload(), you do need to set all the
fields yourself.
See also
[method.Image.pipelinev].
Parameters
xsize-
Type:
intImage width.
ysize-
Type:
intImage height.
bands-
Type:
intImage bands.
format-
Type:
VipsBandFormatBand format.
coding-
Type:
VipsCodingImage coding.
interpretation-
Type:
VipsInterpretationImage type.
xres-
Type:
doubleHorizontal resolution, pixels per millimetre.
yres-
Type:
doubleVertical resolution, pixels per millimetre.