GdkPixbuf::get_n_channels

int get_n_channels();

Queries the number of channels of a pixbuf. It will be either 3 (RGB) or 4 (RGBA).