Method: VIPS::Header#sizeof_line

Defined in:
ext/header.c

#sizeof_lineNumeric

Returns the size of all pixels in the row of the image, uncompressed, in bytes.

Returns:

  • (Numeric)

235
236
237
238
239
240
241
242
243
244
# File 'ext/header.c', line 235

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

    if (im)
        return INT2FIX(IM_IMAGE_SIZEOF_LINE(im));

    return Qnil;
}