Method: Magick::Image#black_point_compensation=

Defined in:
ext/RMagick/rmimage.cpp

#black_point_compensation=(arg) ⇒ Boolean

Set black point compensation attribute.

Parameters:

  • arg (Boolean)

    true or false

Returns:

  • (Boolean)

    the given value



1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
# File 'ext/RMagick/rmimage.cpp', line 1545

VALUE
Image_black_point_compensation_eq(VALUE self, VALUE arg)
{
    Image *image;
    const char *value;

    image = rm_check_frozen(self);
    rm_set_property(image, BlackPointCompensationKey, NULL);
    value = RTEST(arg) ? "true" : "false";
    rm_set_property(image, BlackPointCompensationKey, value);

    return arg;
}