Method: VIPS::Header#sizeof_pel
- Defined in:
- ext/header.c
permalink #sizeof_pel ⇒ Numeric
Returns the size of a pixel in the image, in bytes.
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;
}
|