Method: Magick::Image#opaque?

Defined in:
ext/RMagick/rmimage.cpp

#opaque?Boolean

Returns true if all of the pixels in the receiver have an opacity value of OpaqueOpacity.

Returns:

  • (Boolean)

    true if opaque, false otherwise



10320
10321
10322
10323
10324
10325
10326
10327
10328
# File 'ext/RMagick/rmimage.cpp', line 10320

VALUE
Image_opaque_q(VALUE self)
{
#if defined(IMAGEMAGICK_7)
    return has_attribute(self, IsImageOpaque);
#else
    return has_attribute(self, IsOpaqueImage);
#endif
}