Method: VIPS::Header#sizeof_pel

Defined in:
ext/header.c

#sizeof_pelNumeric

Returns the size of a pixel in the image, in bytes.

Returns:

  • (Numeric)
[View source]

216
217
218
219
220
221
222
223
224
225
# File 'ext/header.c', line 216

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

    if (im)
        return INT2FIX(IM_IMAGE_SIZEOF_PEL(im));

    return Qnil;
}