Method: VIPS::Mask#int?

Defined in:
ext/mask.c

#int?Boolean

Indicate whether all coefficients, the scale and the offset in the mask are integers. Some methods require an all-integer mask.

Returns:

  • (Boolean)


246
247
248
249
250
251
252
253
254
255
# File 'ext/mask.c', line 246

static VALUE
mask_int_p(VALUE obj)
{
    vipsMask *msk;
    Data_Get_Struct(obj, vipsMask, msk);
    if(msk->imask)
        return Qtrue;

    return Qfalse;
}