Method: Magick::Image#class_type

Defined in:
ext/RMagick/rmimage.cpp

#class_typeMagick::ClassType

Return the image’s storage class (a.k.a. storage type, class type). If DirectClass then the pixels contain valid RGB or CMYK colors. If PseudoClass then the image has a colormap referenced by the pixel’s index member.

Returns:

  • (Magick::ClassType)

    the storage class



13792
13793
13794
13795
13796
13797
# File 'ext/RMagick/rmimage.cpp', line 13792

VALUE
Image_class_type(VALUE self)
{
    Image *image = rm_check_destroyed(self);
    return ClassType_find(image->storage_class);
}