Bsoft function

img_RGB_to_CMYK

Source:

src/img/img_colour.c

Description:

Converts a RGB image to a CMYK image.

Algorithm:

	black = minimum(1 - red, 1 - green, 1 - blue)

cyan = (1 - red - black)/(1 - black)
magenta = (1 - green - black)/(1 - black)
yellow = (1 - blue - black)/(1 - black)

Arguments:

Bimage* pimage.

Returns:

int 0.

Prototype:

int img_RGB_to_CMYK(Bimage* p)

Functions used:

RGB_to_CMYK
balloc
bfree

Other objects included:

struct Bimage


Generated by bdoc.pl on Mon Jun 15 11:47:26 2009


Back to the Bsoft home