channels property

int channels
final

The number of channels in the image (e.g. 3 for RGB, 4 for RGBA). If hasAlpha is true, must be 4.

Implementation

final int channels;