Back to FabImage Library website

You are here: Start » Function Reference » Image Color Spaces » RgbToCmyk

RgbToCmyk


Header:FIL.h
Namespace:fil

Converts color space from Red-Green-Blue into Cyan-Magenta-Yellow-Key.

Syntax

C++
C#
 
void fil::RgbToCmyk
(
	const fil::Image& inRgbImage,
	fil::Image& outCmykImage
)

Parameters

Name Type Default Description
inRgbImage const Image&
outCmykImage Image&

Requirements

For input inRgbImage only pixel formats are supported: 3⨯uint8, 3⨯int8, 3⨯uint16, 3⨯int16, 3⨯int32, 3⨯real.

Read more about pixel formats in Image documentation.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

Error type Description
DomainError Not a 3-channel image in RgbToCmyk.
DomainError Not supported inRgbImage pixel format in RgbToCmyk.