Method: Magick::Image#monochrome?
- Defined in:
- ext/RMagick/rmimage.cpp
#monochrome? ⇒ Boolean
Return true if all the pixels in the image have the same red, green, and blue intensities and the intensity is either 0 or QuantumRange.
9629 9630 9631 9632 9633 9634 9635 9636 9637 |
# File 'ext/RMagick/rmimage.cpp', line 9629
VALUE
Image_monochrome_q(VALUE self)
{
#if defined(IMAGEMAGICK_7)
return has_image_attribute(self, IsImageMonochrome);
#else
return has_attribute(self, IsMonochromeImage);
#endif
}
|