Method: Magick::Image#black_threshold

Defined in:
ext/RMagick/rmimage.c

#black_threshold(*args) ⇒ Object

Call BlackThresholdImage.

Ruby usage:

- @verbatim Image#black_threshold(red_channel) @endverbatim
- @verbatim Image#black_threshold(red_channel, green_channel) @endverbatim
- @verbatim Image#black_threshold(red_channel, green_channel, blue_channel) @endverbatim
- @verbatim Image#black_threshold(red_channel, green_channel, blue_channel, opacity_channel) @endverbatim

Parameters:

  • argc

    number of input arguments

  • argv

    array of input arguments

  • self

    this object

Returns:

  • a new image

See Also:

  • threshold_image
  • Image_white_threshold

1315
1316
1317
1318
1319
# File 'ext/RMagick/rmimage.c', line 1315

VALUE
Image_black_threshold(int argc, VALUE *argv, VALUE self)
{
    return threshold_image(argc, argv, self, BlackThresholdImage);
}