Gimp.Image.prototype.get_channels
function get_channels(): [return_value: Array(Gimp.Channel), num_channels: Number(gint)] {
// Gjs wrapper for gimp_image_get_channels()
}
Returns the list of channels contained in the specified image.
This procedure returns the list of channels contained in the specified image. This does not include the selection mask, or layer masks. The order is from topmost to bottommost. Note that \"channels\" are custom channels and do not include the image's color components.
- return_value
The list of channels contained in the image. The returned value must be freed with g_free().
- num_channels
The number of channels contained in the image.