Method: Magick::Image#black_point_compensation

Defined in:
ext/RMagick/rmimage.cpp

#black_point_compensationBoolean

Return current black point compensation attribute.

Returns:

  • (Boolean)

    true or false



1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
# File 'ext/RMagick/rmimage.cpp', line 1514

VALUE
Image_black_point_compensation(VALUE self)
{
    Image *image;
    const char *attr;
    VALUE value;

    image = rm_check_destroyed(self);

    attr = rm_get_property(image, BlackPointCompensationKey);
    if (attr && rm_strcasecmp(attr, "true") == 0)
    {
        value = Qtrue;
    }
    else
    {
        value = Qfalse;
    }

    RB_GC_GUARD(value);

    return value;
}