Gets the number of components of the dictionary's ColorSpace (1 for an image mask), or 0 when it has none.
ColorSpace
public int ColorComponents { get; init; }
ISO 32000-2 §8.9.5.1, Table 87; §7.4.9 (a JPEG 2000 image may omit it).