Method: Magick::Image#colorspace
- Defined in:
- ext/RMagick/rmimage.cpp
#colorspace ⇒ Magick::ColorspaceType
Return the Image pixel interpretation. If the colorspace is RGB the pixels are red, green, blue. If matte is true, then red, green, blue, and index. If it is CMYK, the pixels are cyan, yellow, magenta, black. Otherwise the colorspace is ignored.
3336 3337 3338 3339 3340 3341 3342 3343 |
# File 'ext/RMagick/rmimage.cpp', line 3336
VALUE
Image_colorspace(VALUE self)
{
Image *image;
image = rm_check_destroyed(self);
return ColorspaceType_find(image->colorspace);
}
|