ColorManagement Xojo Plugin |

# ICCColorProfile.FloatCMYKColorToFloatRGBColor Method

Converts a single CMYK color (float based) to a RGB color using color profiles.

shared FloatCMYKColorToFloatRGBColor(
c as Single,
m as Single,
y as Single,
k as Single,
cmykProfile as ICCColorProfile,
rbbValue as Color,
rgbProfile as ICCColorProfile) as ICCColorProfile.ErrorValues

#### Parameters

c
  The cyan value to be converted (0.0 - 1.0)
m
  The magenta value to be converted (0.0 - 1.0)
y
  The yellow value to be converted (0.0 - 1.0)
k
  The key value to be converted (0.0 - 1.0)
cmykProfile
  The CMYK color profile. (This has to be color profile with CMYK color space). If nil or incorrect color space is supplied then crude conversion is done.
rbbValue
  Returns the RGB value in this ByRef parameter.
rgbProfile
  The rgb color profile. (This has to be color profile with RGB color space). If nil or incorrect color space is supplied then crude conversion is done.

#### Returns

ICCColorProfile.ErrorValues
  Error code or no Error if everything was all right.

#### Remarks

You should not use this to convert colors in image one by one.
If profiles are nil or have incorrect color space then error code is returned.
If error code was returned then Crude conversion was done instead of color profile conversion.

#### See Also

ICCColorProfile Class