Spread an image on the channels of the Cmyk

I need to make 4 Pimage variables which will contain only one color of cmyk channel from source image. Could you help me, please?

For PDF, specifically, I recall @koogs working on CMYK output on an old thread here:

For a sketch that produces C M Y K images from an input image, see this thread: