Returns the colour space of samples decoded as decoded: the image's ColorSpace, else an
ICCBased space over the ICC profile the codec reported (when its header is usable and its component count matches), else the
colour model the codec reported, else the device space with as many components (1 gray, 3 RGB, 4 CMYK).
public PdfColorSpace? ResolveColorSpace(DecodedImage decoded)
The samples, from Decode().
null for an image mask or when none fits.ISO 32000-2 §7.4.9: the dictionary's ColorSpace overrides the codestream's colour specification; a JPEG 2000 ICC profile becomes an ICCBased space (§8.6.5.5) whose conversion goes through the colour-management extension point.