Method: VIPS::Header#x_size

Defined in:
ext/header.c

#x_sizeNumeric

Get the width in pixels of the image.

Returns:

  • (Numeric)


52
53
54
55
56
57
58
59
60
61
# File 'ext/header.c', line 52

static VALUE
header_x_size(VALUE obj)
{
  GetImg(obj, data, im);

    if (im)
        return INT2FIX(im->Xsize);

    return Qnil;
}