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
vips_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: vips_image_pipelinev().
Parameters
xsize |
int |
Image width. |
|
ysize |
int |
Image height. |
|
bands |
int |
Image bands. |
|
format |
VipsBandFormat |
Band format. |
|
coding |
VipsCoding |
Image coding. |
|
interpretation |
VipsInterpretation |
Image type. |
|
xres |
double |
Horizontal resolution, pixels per millimetre. |
|
yres |
double |
Vertical resolution, pixels per millimetre. |